Module: DatabaseCleaner::ActiveRecord::ConnectionWrapper::AbstractMysqlAdapter
- Defined in:
- lib/database_cleaner/active_record/truncation.rb
Instance Method Summary collapse
Instance Method Details
#pre_count_tables(tables) ⇒ Object
115 116 117 |
# File 'lib/database_cleaner/active_record/truncation.rb', line 115 def pre_count_tables(tables) tables.select { |table| has_been_used?(table) } end |
#pre_count_truncate_tables(tables) ⇒ Object
111 112 113 |
# File 'lib/database_cleaner/active_record/truncation.rb', line 111 def pre_count_truncate_tables(tables) truncate_tables(pre_count_tables(tables)) end |