Skip to content

Commit 9fa6f6a

Browse files
committed
Remove redundant line
school is a method available as an association so this isn't needed
1 parent 71cdaac commit 9fa6f6a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

app/models/project.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def with_user(current_user)
5656
# students cannot call the Profile API so do not even try
5757
return [self, nil] if current_user&.student?
5858

59-
school = School.find_by(id: school_id)
6059
students = SchoolStudent::List.call(school:, token: current_user.token,
6160
student_ids: [user_id])[:school_students] || []
6261
[self, students.first]

0 commit comments

Comments
 (0)