class method self.extract_callstack

Ruby on Rails 3.1.12

Since v3.0.20 Last seen in v3.2.22.5 Private

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

self.extract_callstack(callstack)

No documentation comment.

Parameters

callstack req
Source
# File activesupport/lib/active_support/deprecation/reporting.rb, line 52
        def extract_callstack(callstack)
          rails_gem_root = File.expand_path("../../../../..", __FILE__) + "/"
          offending_line = callstack.find { |line| !line.start_with?(rails_gem_root) } || 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 52 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Deprecation

Type at least 2 characters to search.

↑↓ navigate · open · esc close