class Testoscope::Config
Attributes
analyze[RW]
back_trace_exclude_paths[RW]
back_trace_paths[RW]
pp_class[RW]
raise_when_unintended[RW]
tables[RW]
unintened_key_words[RW]
Public Class Methods
new()
click to toggle source
# File lib/testoscope.rb, line 8 def initialize self.back_trace_paths = [Rails.root.to_s] self.back_trace_exclude_paths = ["#{Rails.root.to_s}/test", "#{Rails.root.to_s}/spec"] self.unintened_key_words = ['Seq Scan', 'One-Time Filter'] self.raise_when_unintended = false self.analyze = true self.pp_class = "::ActiveRecord::ConnectionAdapters::#{::ActiveRecord::Base.connection.adapter_name}::ExplainPrettyPrinter".constantize self.tables = :all end