Class: ActiveRecord::QueryLogs::SQLCommenter

Inherits:
LegacyFormatter show all
Defined in:
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 '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 'lib/active_record/query_logs_formatter.rb', line 30

def format(pairs)
  pairs.sort_by! { |pair| pair.first.to_s }
  super
end