Skip to content

Commit

Permalink
Fix transferred? impl
Browse files Browse the repository at this point in the history
  • Loading branch information
pskl committed Oct 23, 2024
1 parent a4eb227 commit a7b0257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/student.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def transferred?
end

def multiple_mefs?
classes.joins(:mef).select(:"mefs.id").distinct.count > 1
classes.current.joins(:mef).select(:"mefs.id").distinct.count > 1
end

def multiple_establishments?
classes.select(:establishment_id).distinct.count > 1
classes.current.select(:establishment_id).distinct.count > 1
end

def any_classes_in_establishment?(establishment)
Expand Down

0 comments on commit a7b0257

Please sign in to comment.