From 7c4122110f9c8b538a1268fdab4fe486816800ed Mon Sep 17 00:00:00 2001 From: ankonym Date: Tue, 13 Oct 2015 16:58:16 +0200 Subject: 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. --- lib/tasks/invite_code.rake | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib/tasks') 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 -- cgit v1.2.3