Class: ActiveRecord::QueryLogs::SQLCommenter

Inherits:
LegacyFormatter show all
Defined in:
activerecord/lib/active_record/query_logs_formatter.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeSQLCommenter

Returns a new instance of SQLCommenter.



26
27
28
# File 'activerecord/lib/active_record/query_logs_formatter.rb', line 26

def initialize
  @key_value_separator = "="
end

Instance Method Details

#format(pairs) ⇒ Object



30
31
32
33
# File 'activerecord/lib/active_record/query_logs_formatter.rb', line 30

def format(pairs)
  pairs.sort_by!(&:first)
  super
end