warning removed: shadowing outer local variable - message

This commit is contained in:
Arun Agrawal 2012-09-14 10:19:10 +05:30
parent bb732beba7
commit 948a055f23
1 changed files with 2 additions and 2 deletions

View File

@ -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