summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-10-12 15:50:18 +0200
committerankonym <ankonym@gmail.com>2015-10-13 11:48:52 +0200
commit85161c1bf4f1e830f714e8818e39d7f186914a09 (patch)
tree8dadf59aeb836dd198ca424806a254bd2dda8ae5 /app/models
parentd38e6ab469630b8f4e72fa859e9aaac14c3033ff (diff)
Remove Coupon Code gem and make invite code = id
Id is set = invite code to make it easier to delete the invite codes that get created during the leap platform tests (because this avoids having to look up ttheir id each time).
Diffstat (limited to 'app/models')
-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 cee4095..6fcc427 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