Permalink
Browse files

Merge pull request #5569 from arunagw/warning_remove_master

removed warning: shadowing outer local variable - exception
  • Loading branch information...
vijaydev committed Mar 24, 2012
2 parents beb51b4 + ef864c3 commit 780ab582091cf06ded9540a5d4fef23086e9bac3
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 780ab58

Please sign in to comment.