2012-02-15 07:38:27 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
class WebLinkCategory
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
2012-05-15 10:55:16 +00:00
|
|
|
include OrbitCoreLib::ObjectAuthable
|
2012-07-05 08:00:45 +00:00
|
|
|
include OrbitCoreLib::ObjectDisable
|
2012-02-15 07:38:27 +00:00
|
|
|
# include Mongoid::MultiParameterAttributes
|
2012-05-15 10:55:16 +00:00
|
|
|
AfterObjectAuthUrl = '/panel/page_content/back_end/page_contexts'
|
|
|
|
APP_NAME = 'web_resource'
|
|
|
|
ObjectAuthTitlesOptions = %W{edit}
|
|
|
|
|
2012-02-15 07:38:27 +00:00
|
|
|
field :key
|
|
|
|
|
2012-07-25 20:10:15 +00:00
|
|
|
field :title, localize: true
|
2012-02-15 07:38:27 +00:00
|
|
|
|
|
|
|
has_many :web_links
|
|
|
|
|
2012-05-15 10:55:16 +00:00
|
|
|
def pp_object
|
2012-07-25 20:10:15 +00:00
|
|
|
title
|
2012-05-15 10:55:16 +00:00
|
|
|
end
|
|
|
|
|
2012-02-15 07:38:27 +00:00
|
|
|
end
|