module-and-template-store/app/models/category.rb

9 lines
150 B
Ruby
Raw Normal View History

2014-01-10 08:48:23 +00:00
class Category
include Mongoid::Document
field :title, type: String
field :type, type: String
has_many :templates
has_many :extensions
end