Update to rails 5.2.2.1
This commit is contained in:
parent
1f30bb8a2f
commit
446808da96
36 changed files with 425 additions and 291 deletions
|
|
@ -76,7 +76,7 @@ class Registration < ApplicationRecord
|
|||
end
|
||||
|
||||
def registration_limit_not_exceed
|
||||
if conference.registration_limit > 0 && conference.registrations(:reload).count >= conference.registration_limit
|
||||
if conference.registration_limit > 0 && conference.registrations.reload.count >= conference.registration_limit
|
||||
errors.add(:base, 'Registration limit exceeded')
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue