summaryrefslogtreecommitdiff
path: root/lib/tasks/invite_code.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/invite_code.rake')
-rw-r--r--lib/tasks/invite_code.rake4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/tasks/invite_code.rake b/lib/tasks/invite_code.rake
index 1654599..fa397bb 100644
--- a/lib/tasks/invite_code.rake
+++ b/lib/tasks/invite_code.rake
@@ -11,10 +11,6 @@ task :generate_invites, [:n, :u] => :environment do |task, args|
max_uses = args.u
end
- def generate_invite
- Base64.encode64(SecureRandom.random_bytes).downcase.gsub(/[0oil1+_\/]/,'')[0..7].scan(/..../).join('-')
- end
-
codes.times do |x|
x = InviteCode.new
x.max_uses = max_uses