orbit-ask/app/models/ask_category.rb

11 lines
189 B
Ruby

class AskCategory
include Mongoid::Document
include Mongoid::Timestamps
include OrbitCoreLib::ObjectDisable
field :name, localize: true
field :key
has_many :ask_questions
end