From d38e6ab469630b8f4e72fa859e9aaac14c3033ff Mon Sep 17 00:00:00 2001 From: ankonym Date: Fri, 9 Oct 2015 13:06:42 +0200 Subject: Replace Coupon Code gem for invite code creation Replacing the Coupon Code gem with base64/securerandom as suggested by Elijah. --- app/models/invite_code.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') 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 -- cgit v1.2.3