Skip to content

Commit

Permalink
removed warning: shadowing outer local variable - exception
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Mar 24, 2012
1 parent beb51b4 commit ef864c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/rescuable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef864c3

Please sign in to comment.