Add impressionist

This commit is contained in:
Christophe Vilayphiou committed 2012-05-15 21:26:09 +08:00
1 parent 53a0fbddf0
commit e54f4409fb
21 files changed
+212 -83

No files matched your search

+4
View File
@@ -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