Module: ActiveRecord::QueryLogs::LegacyFormatter

Defined in:
lib/active_record/query_logs_formatter.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.format(key, value) ⇒ Object

Formats the key value pairs into a string.



8
9
10
# File 'lib/active_record/query_logs_formatter.rb', line 8

def format(key, value)
  "#{key}:#{value}"
end

.join(pairs) ⇒ Object



12
13
14
# File 'lib/active_record/query_logs_formatter.rb', line 12

def join(pairs)
  pairs.join(",")
end