method
deprecated_method_warning
v3.2.13 -
Show latest stable
- Class:
ActiveSupport::Deprecation
deprecated_method_warning(method_name, message = nil)public
No documentation available.
# File activesupport/lib/active_support/deprecation/reporting.rb, line 25
def deprecated_method_warning(method_name, message = nil)
warning = "#{method_name} is deprecated and will be removed from Rails #{deprecation_horizon}"
case message
when Symbol then "#{warning} (use #{message} instead)"
when String then "#{warning} (#{message})"
else warning
end
end