Module: ActiveRecordQueryCount::Configuration

Defined in:
lib/active_record_query_count/configuration.rb

Class Method Summary collapse

Class Method Details

.enable_middlewareObject



12
13
14
# File 'lib/active_record_query_count/configuration.rb', line 12

def self.enable_middleware
  ENV['ENABLE_QUERY_COUNT'] == 'true' || @@enable_middleware
end

.ignore_table_countObject



20
21
22
# File 'lib/active_record_query_count/configuration.rb', line 20

def self.ignore_table_count
  ENV['QUERY_COUNT_IGNORE_TABLE_COUNT'] || @@ignore_table_count
end

.max_locations_per_tableObject



16
17
18
# File 'lib/active_record_query_count/configuration.rb', line 16

def self.max_locations_per_table
  ENV['QUERY_COUNT_MAX_LOCATIONS_PER_TABLE'] || @@max_locations_per_table
end