Module: DatabaseCleaner::Generic::Dataholder

Included in:
ActiveRecord::Base, ActiveRecord::Surgicalstrike
Defined in:
lib/database_cleaner/generic/surgicalstrike.rb

Instance Method Summary collapse

Instance Method Details

#checktarget(target) ⇒ Object



4
5
6
7
8
# File 'lib/database_cleaner/generic/surgicalstrike.rb', line 4

def checktarget(target)
  if ($strike_targets.include?(target.class.table_name))
    $vips.push(target)
  end
end