summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-10-06 14:25:40 +0200
committerankonym <ankonym@gmail.com>2015-10-06 14:25:40 +0200
commitbe79269c15a8f9f936f598210ab10baf0c992587 (patch)
treefa91784fe436f7e48120b175ffe561c642ae68c6 /lib
parentda9608a906d4369afb70e042069e219bc2e2d282 (diff)
Adjust rake task with renamed max_uses
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/invite_code.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/invite_code.rake b/lib/tasks/invite_code.rake
index 6623640..71950b9 100644
--- a/lib/tasks/invite_code.rake
+++ b/lib/tasks/invite_code.rake
@@ -16,9 +16,9 @@ task :generate_invites, [:n, :u] => :environment do |task, args|
codes.times do |x|
x = InviteCode.new
- x.invite_max_uses = max_uses
+ x.max_uses = max_uses
x.save
- puts "#{x.invite_code} Code generated with #{x.invite_max_uses} uses."
+ puts "#{x.invite_code} Code generated with #{x.max_uses} uses."
end
end