Skip to content

Commit

Permalink
Fix undefined variable in rake task (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
whereismyjetpack authored Apr 26, 2024
1 parent d8981ed commit 194f002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/railties/devise_guests.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ namespace :devise_guests do
args.with_defaults(days_old: 7, batch_size: 1000)
User
.where("guest = ? and updated_at < ?", true, Time.now - args[:days_old].to_i.days)
.find_each(batch_size: batch_size, &:destroy)
.find_each(batch_size: args[:batch_size], &:destroy)
end
end

0 comments on commit 194f002

Please sign in to comment.