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.
2012-05-16 03:07:11 +00:00
|
|
|
class AssetCategory
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
|
|
|
|
field :key
|
|
|
|
field :display
|
2012-07-25 21:07:32 +00:00
|
|
|
field :title, localize: true
|
2012-05-16 03:07:11 +00:00
|
|
|
|
|
|
|
has_many :assets
|
|
|
|
|
|
|
|
def self.from_id(id)
|
|
|
|
AssetCategory.find(id) rescue nil
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|