summaryrefslogtreecommitdiff
path: root/app/models/invite_code_validator.rb
diff options
context:
space:
mode:
authorAya Jaff <ayajaff@hotmail.com>2015-09-04 14:01:49 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:46 +0200
commit2ce3d14cfa77f985b6849dd4431db65e9abd0226 (patch)
tree14f59ede560a51ee639407bbda90f86440e48920 /app/models/invite_code_validator.rb
parentd13e2d841a632385031a0b98a15773d8b90d05e9 (diff)
Fixed the signup bug that wrongly consumes the invite code.
Diffstat (limited to 'app/models/invite_code_validator.rb')
-rw-r--r--app/models/invite_code_validator.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/invite_code_validator.rb b/app/models/invite_code_validator.rb
index d03d510..127dc57 100644
--- a/app/models/invite_code_validator.rb
+++ b/app/models/invite_code_validator.rb
@@ -8,10 +8,6 @@ class InviteCodeValidator < ActiveModel::Validator
elsif count_greater_than_zero?(user_invite_code.invite_count)
add_error_to_user("This code has already been used", user)
-
- else
- user_invite_code.invite_count += 1
- user_invite_code.save
end
end