From 983a13e56f60818d64a29a4917f5b6f8372ed913 Mon Sep 17 00:00:00 2001 From: Dann Bohn Date: Tue, 20 Feb 2024 10:14:00 -0500 Subject: [PATCH] fix undefined variable --- lib/railties/devise_guests.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/railties/devise_guests.rake b/lib/railties/devise_guests.rake index 6365b87..04b5cf5 100644 --- a/lib/railties/devise_guests.rake +++ b/lib/railties/devise_guests.rake @@ -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