Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
9cbe3c7148 |
|
|
@ -2,9 +2,9 @@ class Book
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
include Mongoid::Timestamps
|
include Mongoid::Timestamps
|
||||||
include Mongoid::Attributes::Dynamic
|
include Mongoid::Attributes::Dynamic
|
||||||
ActiveSupport.on_load(:after_initialize) { Book.include Admin::PersonalBooksHelper }
|
include Admin::PersonalBooksHelper
|
||||||
include OrbitModel::Status
|
include OrbitModel::Status
|
||||||
ActiveSupport.on_load(:after_initialize) { Book.include MemberHelper }
|
include MemberHelper
|
||||||
include Slug
|
include Slug
|
||||||
HideTimeInLinK = (File.exist?("#{Rails.root}/hide_time_fields_for_plugins.txt") rescue false)
|
HideTimeInLinK = (File.exist?("#{Rails.root}/hide_time_fields_for_plugins.txt") rescue false)
|
||||||
field :book_title, as: :slug_title, localize: true
|
field :book_title, as: :slug_title, localize: true
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ module PersonalBook
|
||||||
update_info 'some update_info'
|
update_info 'some update_info'
|
||||||
frontend_enabled
|
frontend_enabled
|
||||||
icon_class_no_sidebar "icons-user"
|
icon_class_no_sidebar "icons-user"
|
||||||
|
authorizable
|
||||||
|
is_personal_plugin true
|
||||||
data_count 1..10
|
data_count 1..10
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue