Searched refs:Category (Results 1 - 6 of 6) sorted by relevance

/ontohub/spec/models/
H A Dcategory.rb3 describe Category do
16 onto1.categories = [Category.find(edge.parent_id)]
19 onto2.categories = [Category.find(edge.child_id)]
22 @parent_category = Category.find(edge.parent_id)
23 @child_category = Category.find(edge.child_id)
44 Category.count.should == 123
/ontohub/app/controllers/
H A Dcategories_controller.rb12 if vert = Category.first
21 @category = Category.find(params[:id])
H A Dontologies_controller.rb32 @c_vertices = Category.first.roots.first.children rescue []
37 @c_vertices = Category.first.roots.first.children rescue []
/ontohub/app/models/
H A Dcategory.rb1 class Category < ActiveRecord::Base class
H A Dability.rb125 can :read, Category
138 can :read, Category
/ontohub/app/models/ontology/
H A Dcategories.rb14 [Category, CEdge].map(&:destroy_all)
36 Category.where(name: symbol.display_name || symbol.name).

Completed in 117 milliseconds