method

call

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: QueryLogs
call(sql, connection) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/query_logs.rb, line 82
      def call(sql, connection) # :nodoc:
        comment = self.comment(connection)

        if comment.blank?
          sql
        elsif prepend_comment
          "#{comment} #{sql}"
        else
          "#{sql} #{comment}"
        end
      end
Register or log in to add new notes.