summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
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 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