diff --git a/lib/broken_record/config.rb b/lib/broken_record/config.rb index 5703663..6810fda 100644 --- a/lib/broken_record/config.rb +++ b/lib/broken_record/config.rb @@ -7,7 +7,7 @@ module Config self.after_fork_callbacks = [] self.default_scopes = {} self.compact_output = false - self.aggregator_klass = 'BrokenRecord::ResultAggregator' + self.aggregator_class = 'BrokenRecord::ResultAggregator' def before_scan(&block) self.before_scan_callbacks << block diff --git a/lib/broken_record/scanner.rb b/lib/broken_record/scanner.rb index 8a26d4f..6325aa6 100644 --- a/lib/broken_record/scanner.rb +++ b/lib/broken_record/scanner.rb @@ -5,7 +5,7 @@ module BrokenRecord class Scanner def run(class_names) - BrokenRecord::Config.aggregator_klass.constantize.new.tap do |aggregator| + BrokenRecord::Config.aggregator_class.constantize.new.tap do |aggregator| classes = classes_to_validate(class_names) BrokenRecord::Config.before_scan_callbacks.each { |callback| callback.call }