Permalink
Browse files

removed warning: shadowing outer local variable - exception

  • Loading branch information...
1 parent beb51b4 commit ef864c3a2282fb6d7e7aedf4a226ddd810d7d9c2 @arunagw arunagw committed Mar 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/rescuable.rb
View
2 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

0 comments on commit ef864c3

Please sign in to comment.