Class: PgCanary::RulesConfig
- Inherits:
-
Object
- Object
- PgCanary::RulesConfig
- Defined in:
- lib/pg_canary/configuration.rb
Instance Method Summary collapse
-
#initialize ⇒ RulesConfig
constructor
A new instance of RulesConfig.
Constructor Details
#initialize ⇒ RulesConfig
Returns a new instance of RulesConfig.
22 23 24 25 26 27 |
# File 'lib/pg_canary/configuration.rb', line 22 def initialize Rules::Base.all.each do |klass| rule_config = RuleConfig.new(klass.) define_singleton_method(klass.rule_name) { rule_config } end end |