Skip to content
This repository
Browse code

removed warning: shadowing outer local variable - exception

  • Loading branch information...
commit ef864c3a2282fb6d7e7aedf4a226ddd810d7d9c2 1 parent beb51b4
Arun Agrawal authored March 24, 2012
2  activesupport/lib/active_support/rescuable.rb
@@ -111,7 +111,7 @@ def handler_for_rescue(exception)
111 111
         if rescuer.arity == 0
112 112
           Proc.new { instance_exec(&rescuer) }
113 113
         else
114  
-          Proc.new { |exception| instance_exec(exception, &rescuer) }
  114
+          Proc.new { |_exception| instance_exec(_exception, &rescuer) }
115 115
         end
116 116
       end
117 117
     end

0 notes on commit ef864c3

Please sign in to comment.
Something went wrong with that request. Please try again.