Fix displaying visit count
This commit is contained in:
parent
55faf97379
commit
3e4672d2ab
|
@ -222,7 +222,7 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def dislpay_view_count(object)
|
def dislpay_view_count(object)
|
||||||
"#{t(:view_count)}: #{object.view_count}"
|
"#{t(:view_count)}: #{Impression.where(:impressionable_id=>b.id).count}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def display_visitors(options={})
|
def display_visitors(options={})
|
||||||
|
|
Loading…
Reference in New Issue