instance method
deprecation_warning
Ruby on Rails 7.1.6
Since v4.0.13Signature
deprecation_warning(deprecated_method_name, message = nil, caller_backtrace = nil)
No documentation comment.
Parameters
-
deprecated_method_namereq -
messageopt = nil -
caller_backtraceopt = nil
Source
# File activesupport/lib/active_support/deprecation/reporting.rb, line 99
def deprecation_warning(deprecated_method_name, message = nil, caller_backtrace = nil)
caller_backtrace ||= caller_locations(2)
deprecated_method_warning(deprecated_method_name, message).tap do |msg|
warn(msg, caller_backtrace)
end
end
Defined in activesupport/lib/active_support/deprecation/reporting.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation::Reporting