Add impressionist
This commit is contained in:
1 parent
53a0fbddf0
commit
e54f4409fb
21 files changed
+212
-83
No files matched your search
@@ -1,10 +1,14 @@
|
||||
class Page < Item
|
||||
include Impressionist::Impressionable
|
||||
|
||||
is_impressionable :counter_cache => { :column_name => :view_count }
|
||||
|
||||
field :content
|
||||
field :app_frontend_url
|
||||
field :theme_id, :type => BSON::ObjectId, :default => nil
|
||||
field :category
|
||||
field :tag
|
||||
field :view_count, :type => Integer, :default => 0
|
||||
|
||||
belongs_to :design
|
||||
belongs_to :module_app
|
||||
|
||||
Reference in new issue
Block a user