summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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