Skip to content

0: Holder utility

Mirv edited this page May 2, 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

Administrate - Tutorial, Official Installation Guide

Clone this wiki locally