diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6b34077c..9f3ee3bc 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -20,7 +20,7 @@ def validate_per_page_param params[name] = 1000 if params[name] && params[name] > 1000 - params.delete(param) if params[name].zero? + params.delete(name) if params[name].zero? end end