Skip to content

0: Holder utility

Mirv edited this page Apr 28, 2018 · 2 revisions
  def setup
    purge_table(Pet)
  end
  
  def purge_table(instance_of)
    Array(instance_of).each do |x|
      x.name.constantize.all.delete_all
    end
  end
Clone this wiki locally