aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-03-24 10:35:36 +0530
committerArun Agrawal <arunagw@gmail.com>2012-03-24 10:35:36 +0530
commitef864c3a2282fb6d7e7aedf4a226ddd810d7d9c2 (patch)
treec175212505098d4c59b089d9bd47d029342b450b /activesupport
parentbeb51b4d5f73abc5be6a82a9d63d3cce6de5a9a2 (diff)
downloadrails-ef864c3a2282fb6d7e7aedf4a226ddd810d7d9c2.tar.gz
rails-ef864c3a2282fb6d7e7aedf4a226ddd810d7d9c2.tar.bz2
rails-ef864c3a2282fb6d7e7aedf4a226ddd810d7d9c2.zip
removed warning: shadowing outer local variable - exception
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/rescuable.rb2
1 files changed, 1 insertions, 1 deletions
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