Method: ActiveRecord::QueryLogs.query_source_location

Defined in:
activerecord/lib/active_record/query_logs.rb

.query_source_locationObject

:nodoc:



155
156
157
158
159
160
161
# File 'activerecord/lib/active_record/query_logs.rb', line 155

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