From 44f2b49647a200bbc272dfd0bd2a9a57ff62e3b0 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Mon, 23 Nov 2015 13:40:31 +0100 Subject: [PATCH] adds consistency between debates and proposals --- app/models/debate.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/debate.rb b/app/models/debate.rb index 9902f7e72..086bd5ae4 100644 --- a/app/models/debate.rb +++ b/app/models/debate.rb @@ -48,10 +48,10 @@ class Debate < ActiveRecord::Base }, using: { tsearch: { dictionary: "spanish" }, - trigram: { threshold: 0.1 }, }, - ranked_by: '(:tsearch + debates.cached_votes_up)', - order_within_rank: "debates.created_at DESC" + ignoring: :accents, + ranked_by: '(:tsearch)', + order_within_rank: "debates.cached_votes_up DESC" } def description