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