From 3e4672d2ab0e274f5b14bcafcce9e02aac418c2c Mon Sep 17 00:00:00 2001 From: manson Date: Wed, 9 Apr 2014 11:15:00 +0800 Subject: [PATCH] Fix displaying visit count --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a6fd8f8..0b201b0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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={})