aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-09-14 10:19:10 +0530
committerArun Agrawal <arunagw@gmail.com>2012-09-14 10:19:10 +0530
commit948a055f2375fa17ea5aa1cc2b81a226a4660598 (patch)
treec8248f1015d4c36790ca18643e6c11979efc08b7 /activesupport
parentbb732beba7c0c6f54b12eb774bc78790dd955b65 (diff)
downloadrails-948a055f2375fa17ea5aa1cc2b81a226a4660598.tar.gz
rails-948a055f2375fa17ea5aa1cc2b81a226a4660598.tar.bz2
rails-948a055f2375fa17ea5aa1cc2b81a226a4660598.zip
warning removed: shadowing outer local variable - message
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/deprecation/reporting.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/deprecation/reporting.rb b/activesupport/lib/active_support/deprecation/reporting.rb
index 02e8ff7c87..43a4ed81e5 100644
--- a/activesupport/lib/active_support/deprecation/reporting.rb
+++ b/activesupport/lib/active_support/deprecation/reporting.rb
@@ -35,8 +35,8 @@ module ActiveSupport
end
def deprecation_warning(deprecated_method_name, message = nil, caller_backtrace = caller)
- deprecated_method_warning(deprecated_method_name, message).tap do |message|
- warn(message, caller_backtrace)
+ deprecated_method_warning(deprecated_method_name, message).tap do |msg|
+ warn(msg, caller_backtrace)
end
end