instance method extract_callstack

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v5.2.8.1 Private

Signature

extract_callstack(callstack)

No documentation comment.

Parameters

callstack req
Source
# File activerecord/lib/active_record/log_subscriber.rb, line 115
      def extract_callstack(callstack)
        line = callstack.find do |frame|
          frame.absolute_path && !ignored_callstack(frame.absolute_path)
        end

        offending_line = line || callstack.first

        [
          offending_line.path,
          offending_line.lineno
        ]
      end

Defined in activerecord/lib/active_record/log_subscriber.rb line 115 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::LogSubscriber

Type at least 2 characters to search.

↑↓ navigate · open · esc close