Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Gervasi committed Aug 28, 2015
1 parent 6c41f4b commit e4ded64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/broken_record/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/broken_record/scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit e4ded64

Please sign in to comment.