Class: ActiveRecord::QueryLogs::SQLCommenter
- Inherits:
-
Object
- Object
- ActiveRecord::QueryLogs::SQLCommenter
- Defined in:
- lib/active_record/query_logs_formatter.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.format(key, value) ⇒ Object
20 21 22 |
# File 'lib/active_record/query_logs_formatter.rb', line 20 def format(key, value) "#{key}='#{ERB::Util.url_encode(value)}'" end |
.join(pairs) ⇒ Object
24 25 26 |
# File 'lib/active_record/query_logs_formatter.rb', line 24 def join(pairs) pairs.join(",") end |