method
extract_callstack
v7.2.3 -
Show latest stable
- Class:
ActiveSupport::Deprecation::Reporting
extract_callstack(callstack)private
No documentation available.
# File activesupport/lib/active_support/deprecation/reporting.rb, line 140
def extract_callstack(callstack)
return [] if callstack.empty?
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