Fix displaying visit count

This commit is contained in:
manson 2014-04-09 11:15:00 +08:00
parent 55faf97379
commit 3e4672d2ab
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ module ApplicationHelper
end
def dislpay_view_count(object)
"#{t(:view_count)}: #{object.view_count}"
"#{t(:view_count)}: #{Impression.where(:impressionable_id=>b.id).count}"
end
def display_visitors(options={})