method

_extract_callstack

_extract_callstack(callstack)
private

No documentation available.

# File activesupport/lib/active_support/deprecation/reporting.rb, line 153
        def _extract_callstack(callstack)
          ActiveSupport.deprecator.warn(<<~MESSAGE)
            Passing the result of `caller` to ActiveSupport::Deprecation#warn is deprecated and will be removed in Rails 8.0.

            Please pass the result of `caller_locations` instead.
          MESSAGE

          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