Class: ActiveRecord::QueryLogs::SQLCommenter
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
LegacyFormatter
|
|
Instance Chain:
self,
LegacyFormatter
|
|
Inherits: |
ActiveRecord::QueryLogs::LegacyFormatter
|
Defined in: | activerecord/lib/active_record/query_logs_formatter.rb |
Class Method Summary
Instance Attribute Summary
LegacyFormatter
- Inherited
Instance Method Summary
- #format(pairs)
- #format_value(value) private
LegacyFormatter
- Inherited
#format | Formats the key value pairs into a string. |
#format_value |
Constructor Details
.new ⇒ SQLCommenter
# File 'activerecord/lib/active_record/query_logs_formatter.rb', line 26
def initialize @key_value_separator = "=" end
Instance Method Details
#format(pairs)
[ GitHub ]# File 'activerecord/lib/active_record/query_logs_formatter.rb', line 30
def format(pairs) pairs.sort_by! { |pair| pair.first.to_s } super end