diff options
author | ankonym <ankonym@gmail.com> | 2015-10-13 16:58:16 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-10-13 16:58:16 +0200 |
commit | 7c4122110f9c8b538a1268fdab4fe486816800ed (patch) | |
tree | be929abfe60a680b300489fb07945dcb9efa3273 | |
parent | 85161c1bf4f1e830f714e8818e39d7f186914a09 (diff) |
Cleaned up last traces of the Great Git Mess
Removed the parts related to multi-use invite codes (those are in a separate pull request) - I hope this is all correct now! Sorry for the confusion.
-rw-r--r-- | lib/tasks/invite_code.rake | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/tasks/invite_code.rake b/lib/tasks/invite_code.rake index fa397bb..3d608ce 100644 --- a/lib/tasks/invite_code.rake +++ b/lib/tasks/invite_code.rake @@ -1,19 +1,11 @@ -require 'base64' -require 'securerandom' - desc "Generate a batch of invite codes" -task :generate_invites, [:n, :u] => :environment do |task, args| +task :generate_invites, [:n] => :environment do |task, args| codes = args.n codes = codes.to_i - if args.u != nil - max_uses = args.u - end - codes.times do |x| x = InviteCode.new - x.max_uses = max_uses x.save puts x.invite_code end |