Impressionist

This commit is contained in:
manson 2014-05-15 19:29:59 +08:00
parent 2c6c5d9918
commit 9b8febb80b
1 changed files with 1 additions and 3 deletions

View File

@ -3,9 +3,7 @@
class PageContext class PageContext
include Mongoid::Document include Mongoid::Document
include Mongoid::Timestamps include Mongoid::Timestamps
include Impressionist::Impressionable include OrbitModel::Impression
is_impressionable :counter_cache => { :column_name => :view_count }
field :update_user_id field :update_user_id
field :version, :type => Integer , :default => 0 field :version, :type => Integer , :default => 0