Skip to content

Commit

Permalink
use exists?
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrebs5 committed Feb 5, 2017
1 parent f9e8ad7 commit b199dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def compute_occupied_places
# @param none
# @return [Boolean] true if there are rejected participants without status notification sent
def has_rejected_participants_without_status_notification?
application_letters.where(status: ApplicationLetter.statuses[:rejected], status_notification_sent: false).count > 0
application_letters.exists?(status: ApplicationLetter.statuses[:rejected], status_notification_sent: false)
end

# Returns the current state of the event (draft-, application-, selection- and execution-phase)
Expand Down

0 comments on commit b199dc3

Please sign in to comment.