summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-08-13 15:29:04 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:44 +0200
commitbd98a2cbb8796039efbffb7039a9bda1cde22dae (patch)
treee2d8f3d0e59b0bb2763cd7eabd9c422a276258ba /app/models/user.rb
parent393291de60c4f29bb03bad596bb60c1e0648e6e7 (diff)
Add validation of invite code in user object based on codes in couch db
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 5510470..06e1a0f 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -39,7 +39,7 @@ class User < CouchRest::Model::Base
:email => true,
:mx_with_fallback => true
- validates :invite_code, inclusion: { in: ["testcode"], message: "%{value} is not a valid invite code" }
+ validates_with InviteCodeValidator
timestamps!