Methods

Files

DatabaseCleaner::MongoMapper::Truncation

Public Instance Methods

clean() click to toggle source
# File lib/database_cleaner/mongo_mapper/truncation.rb, line 6
def clean
  if @only
    collections.each { |c| c.remove if @only.include?(c.name) }
  else
    collections.each { |c| c.remove unless @tables_to_exclude.include?(c.name) }
  end
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.