From ef864c3a2282fb6d7e7aedf4a226ddd810d7d9c2 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Sat, 24 Mar 2012 10:35:36 +0530 Subject: removed warning: shadowing outer local variable - exception --- activesupport/lib/active_support/rescuable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/rescuable.rb b/activesupport/lib/active_support/rescuable.rb index 0fbe6e5b29..85e84bc203 100644 --- a/activesupport/lib/active_support/rescuable.rb +++ b/activesupport/lib/active_support/rescuable.rb @@ -111,7 +111,7 @@ module ActiveSupport 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 -- cgit v1.2.3