class method self.formatter_for

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

self.formatter_for(format)

No documentation comment.

Parameters

format req
Source
# File activerecord/lib/active_record/query_logs.rb, line 210
        def formatter_for(format)
          case format
          when :legacy
            LegacyFormatter
          when :sqlcommenter
            SQLCommenter
          else
            raise ArgumentError, "Formatter is unsupported: #{format}"
          end
        end

Defined in activerecord/lib/active_record/query_logs.rb line 210 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::QueryLogs

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close