instance method _extract_callstack

Ruby on Rails 6.0.6

Since v5.2.8.1 Last seen in v7.2.3 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3

Signature

_extract_callstack(callstack)

No documentation comment.

Parameters

callstack req
Source
# File activesupport/lib/active_support/deprecation/reporting.rb, line 94
        def _extract_callstack(callstack)
          warn "Please pass `caller_locations` to the deprecation API" if $VERBOSE
          offending_line = callstack.find { |line| !ignored_callstack(line) } || callstack.first

          if offending_line
            if md = offending_line.match(/^(.+?):(\d+)(?::in `(.*?)')?/)
              md.captures
            else
              offending_line
            end
          end
        end

Defined in activesupport/lib/active_support/deprecation/reporting.rb line 94 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Deprecation::Reporting

Type at least 2 characters to search.

↑↓ navigate · open · esc close