From 20463dd6c5d9f0a291f11e5a69457e18d83b4f10 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih <terminale@gmail.com> Date: Fri, 25 Jul 2014 11:41:38 +0000 Subject: [PATCH] [Hack][ES] Protip user don't index avatar_url correctly. --- app/views/protips/_mini.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/protips/_mini.html.haml b/app/views/protips/_mini.html.haml index 2d7aa6f3..f3473efd 100644 --- a/app/views/protips/_mini.html.haml +++ b/app/views/protips/_mini.html.haml @@ -1,4 +1,4 @@ --#-protip = Protip::SearchWrapper.new(protip) +- protip = protip.load #this is simply a hack, fix ES indexed json %article{:class => dom_class(protip), :id => protip.public_id} %header -unless protip.best_stat.nil? || best_stat_value(protip) == 0