Class: Niceql::NiceQLConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/niceql.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNiceQLConfig



248
249
250
251
252
253
254
# File 'lib/niceql.rb', line 248

def initialize
  self.pg_adapter_with_nicesql = false
  self.indentation_base = 2
  self.open_bracket_is_newliner = false
  self.prettify_active_record_log_output = false
  self.prettify_pg_errors = defined? ::ActiveRecord::Base && ActiveRecord::Base.connection_config['adapter'] == 'postgresql'
end

Instance Attribute Details

#indentation_baseObject

Returns the value of attribute indentation_base.



241
242
243
# File 'lib/niceql.rb', line 241

def indentation_base
  @indentation_base
end

#open_bracket_is_newlinerObject

Returns the value of attribute open_bracket_is_newliner.



241
242
243
# File 'lib/niceql.rb', line 241

def open_bracket_is_newliner
  @open_bracket_is_newliner
end

#pg_adapter_with_nicesqlObject

Returns the value of attribute pg_adapter_with_nicesql.



241
242
243
# File 'lib/niceql.rb', line 241

def pg_adapter_with_nicesql
  @pg_adapter_with_nicesql
end

#prettify_active_record_log_outputObject

Returns the value of attribute prettify_active_record_log_output.



241
242
243
# File 'lib/niceql.rb', line 241

def prettify_active_record_log_output
  @prettify_active_record_log_output
end

#prettify_pg_errorsObject

Returns the value of attribute prettify_pg_errors.



241
242
243
# File 'lib/niceql.rb', line 241

def prettify_pg_errors
  @prettify_pg_errors
end