method

extract_callstack

rails latest stable - Class: ActiveRecord::LogSubscriber

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.2.3) is shown here.

extract_callstack(callstack)
private

No documentation available.

# 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