class method
self.deprecated_method_warning
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
self.deprecated_method_warning(method_name, message = nil)
No documentation comment.
Parameters
-
method_namereq -
messageopt = nil
Source
# File activesupport/lib/active_support/deprecation/reporting.rb, line 21
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
Defined in activesupport/lib/active_support/deprecation/reporting.rb line 21
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation