Module: DatabaseCleaner

Defined in:
lib/database_cleaner/active_record/seeded.rb,
lib/database_cleaner/active_record/seeded.rb,
lib/database_cleaner/active_record/seeded/adapter/mysql.rb,
lib/database_cleaner/active_record/seeded/configuration.rb

Defined Under Namespace

Modules: ActiveRecord

Class Method Summary collapse

Class Method Details

.prepare_with(strategy, &block) ⇒ Object



66
67
68
69
70
71
# File 'lib/database_cleaner/active_record/seeded.rb', line 66

def prepare_with(strategy, &block)
  connections.each do |connection|
    connection.strategy = strategy
    connection.strategy.prepare(&block)
  end
end