Put back impressions for new and bulletin.

Add view_count field to tag.
This commit is contained in:
Christophe Vilayphiou committed 2012-07-30 17:57:55 +08:00
1 parent 4d7a53866e
commit f3ccbce5c8
3 files changed
+4 -2

No files matched your search

@@ -14,7 +14,7 @@ class Bulletin
#scope :searchable,where(:is_checked=>true,:is_hidden=>false,:is_pending=>false)
# is_impressionable :counter_cache => { :column_name => :view_count }
is_impressionable :counter_cache => { :column_name => :view_count }
field :title, localize: true
field :subtitle, localize: true
+1 -1
View File
@@ -17,7 +17,7 @@ class NewsBulletin
#scope :searchable,where(:is_checked=>true,:is_hidden=>false,:is_pending=>false)
# is_impressionable :counter_cache => { :column_name => :view_count }
is_impressionable :counter_cache => { :column_name => :view_count }
field :title, localize: true
field :subtitle, localize: true