instance method
extract_callstack
Ruby on Rails 7.0.10
Since v4.0.13 PrivateSignature
extract_callstack(callstack)
No documentation comment.
Parameters
-
callstackreq
Source
# File activesupport/lib/active_support/deprecation/reporting.rb, line 127
def extract_callstack(callstack)
return _extract_callstack(callstack) if callstack.first.is_a? String
offending_line = callstack.find { |frame|
# Code generated with `eval` doesn't have an `absolute_path`, e.g. templates.
path = frame.absolute_path || frame.path
path && !ignored_callstack?(path)
} || callstack.first
[offending_line.path, offending_line.lineno, offending_line.label]
end
Defined in activesupport/lib/active_support/deprecation/reporting.rb line 127
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation::Reporting