diff --git a/activesupport/lib/active_support/rescuable.rb b/activesupport/lib/active_support/rescuable.rb index 0fbe6e5b2973669817ae327cc4ef252805acc11f..85e84bc2036077f2e2488b9ea15425c84bd61dfa 100644 --- a/activesupport/lib/active_support/rescuable.rb +++ b/activesupport/lib/active_support/rescuable.rb @@ -111,7 +111,7 @@ def handler_for_rescue(exception) if rescuer.arity == 0 Proc.new { instance_exec(&rescuer) } else - Proc.new { |exception| instance_exec(exception, &rescuer) } + Proc.new { |_exception| instance_exec(_exception, &rescuer) } end end end