module ActiveRecord::QueryLogs
def call(sql, connection) # :nodoc:
def call(sql, connection) # :nodoc: comment = self.comment(connection) if comment.blank? sql elsif prepend_comment "#{comment} #{sql}" else "#{sql} #{comment}" end end
def call(sql, connection) # :nodoc: comment = self.comment(connection) if comment.blank? sql elsif prepend_comment "#{comment} #{sql}" else "#{sql} #{comment}" end end