method

query_source_location

rails latest stable - Class: ActiveRecord::QueryLogs

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

query_source_location()
public

No documentation available.

# File activerecord/lib/active_record/query_logs.rb, line 117
        def query_source_location # :nodoc:
          Thread.each_caller_location do |location|
            frame = LogSubscriber.backtrace_cleaner.clean_frame(location)
            return frame if frame
          end
          nil
        end