summaryrefslogtreecommitdiff
path: root/app/models/invite_code.rb
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-10-09 13:06:42 +0200
committerankonym <ankonym@gmail.com>2015-10-13 11:48:51 +0200
commitd38e6ab469630b8f4e72fa859e9aaac14c3033ff (patch)
tree22d924a5e35d35dc71f225c25a1c3017c3345929 /app/models/invite_code.rb
parent847887f5ac86f8ea561f21739f683762761fe758 (diff)
Replace Coupon Code gem for invite code creation
Replacing the Coupon Code gem with base64/securerandom as suggested by Elijah.
Diffstat (limited to 'app/models/invite_code.rb')
-rw-r--r--app/models/invite_code.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/invite_code.rb b/app/models/invite_code.rb
index 6fcc427..cee4095 100644
--- a/app/models/invite_code.rb
+++ b/app/models/invite_code.rb
@@ -19,7 +19,7 @@ class InviteCode < CouchRest::Model::Base
end
super(attributes, options)
-
+
write_attribute('invite_code', attributes[:id]) if new?
end