1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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