Class: ActiveRecord::QueryLogs::SQLCommenter
- Inherits:
-
LegacyFormatter
- Object
- LegacyFormatter
- ActiveRecord::QueryLogs::SQLCommenter
- Defined in:
- lib/active_record/query_logs_formatter.rb
Overview
:nodoc:
Instance Method Summary collapse
- #format(pairs) ⇒ Object
-
#initialize ⇒ SQLCommenter
constructor
A new instance of SQLCommenter.
Constructor Details
#initialize ⇒ SQLCommenter
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!(&:first) super end |