diff options
Diffstat (limited to 'app/models/invite_code_validator.rb')
-rw-r--r-- | app/models/invite_code_validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/invite_code_validator.rb b/app/models/invite_code_validator.rb index 9dfe6fa..676e4fa 100644 --- a/app/models/invite_code_validator.rb +++ b/app/models/invite_code_validator.rb @@ -18,7 +18,7 @@ class InviteCodeValidator < ActiveModel::Validator end def has_no_uses_left?(code) - code.invite_count >= code.invite_max_uses + code.invite_count >= code.max_uses end def add_error_to_user(error, user) |