categories.rb revision 7053f64d201844e5a0529046e790fc6855c3e268
included do
end
end
# Delete previous set of categories
classes.each do |c|
Category.create!(:name => c.display_name || c.name)
end
subclasses.each do |s|
CEdge.create!(:child_id => Category.find_by_name(c1).id, :parent_id => Category.find_by_name(c2).id)
end
end
end