From 85161c1bf4f1e830f714e8818e39d7f186914a09 Mon Sep 17 00:00:00 2001 From: ankonym Date: Mon, 12 Oct 2015 15:50:18 +0200 Subject: 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). --- app/models/invite_code.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/invite_code.rb') 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 -- cgit v1.2.3