module RailsSQLPrettifier::NiceQLConfigExt

Attributes

pg_adapter_with_nicesql[RW]
prettify_active_record_log_output[RW]
prettify_pg_errors[RW]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/rails_sql_prettifier.rb, line 62
def initialize
  super
  self.pg_adapter_with_nicesql = false
  self.prettify_active_record_log_output = false
  self.prettify_pg_errors = ar_using_pg_adapter?
end

Public Instance Methods

ar_using_pg_adapter?() click to toggle source
# File lib/rails_sql_prettifier.rb, line 58
def ar_using_pg_adapter?
  ActiveRecord::Base.connection_db_config.adapter == 'postgresql'
end