diff options
author | ankonym <ankonym@gmail.com> | 2015-08-31 17:15:27 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-09-28 15:12:45 +0200 |
commit | a8f07fb18518fd95fd701e8c0e550a3cd70520b0 (patch) | |
tree | 7a2ca500e5626234c4eff3f606b77bd57519c3ce /app/models/user.rb | |
parent | 45c3fadd930a474951bd918a50e1ea2b00af75c7 (diff) |
Fixes for the invite code validator
Validation should only happen for new records
User invite code was nil for invalid invite codes
Adding missing tests
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index a4dd132..c0079d5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -40,7 +40,7 @@ class User < CouchRest::Model::Base :mx_with_fallback => true - validates_with InviteCodeValidator + validates_with InviteCodeValidator, on: :create timestamps! |