Fix remaining rubocop problems

This commit is contained in:
Henne Vogelsang 2016-02-18 14:40:24 +01:00
parent 5565d8fb68
commit ed0f55c45f
3 changed files with 4 additions and 6 deletions

View file

@ -52,7 +52,7 @@ class Registration < ActiveRecord::Base
end
def registration_limit_not_exceed
if self.conference.registration_limit>0 && self.conference.registrations(:reload).count >= self.conference.registration_limit
if conference.registration_limit > 0 && conference.registrations(:reload).count >= conference.registration_limit
errors.add(:base, 'Registration limit exceeded')
end
end