Methods

Files

Class/Module Index [+]

Quicksearch

DatabaseCleaner::Moped::Truncation

Public Instance Methods

clean() click to toggle source
# File lib/database_cleaner/moped/truncation.rb, line 5
def clean
  if @only
    collections.each { |c| session[c].find.remove_all if @only.include?(c) }
  else
    collections.each { |c| session[c].find.remove_all unless @tables_to_exclude.include?(c) }
  end
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.