This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2013-07-02 08:46:44 +00:00
|
|
|
class Category
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
include OrbitCoreLib::ObjectAuthable
|
|
|
|
|
|
|
|
field :disable, type: Boolean, default: false
|
|
|
|
field :title, localize: true
|
|
|
|
|
|
|
|
validates :title, :at_least_one => true
|
|
|
|
|
|
|
|
belongs_to :module_app
|
|
|
|
has_many :buffer_categories
|
|
|
|
|
|
|
|
scope :enabled, where(:disable.in => [false, nil, ''])
|
|
|
|
|
2013-07-10 08:42:25 +00:00
|
|
|
end
|