fixes specs

This commit is contained in:
rgarcia
2015-11-18 21:04:16 +01:00
parent 8b22c59bec
commit c212aa3afd
2 changed files with 5 additions and 19 deletions

View File

@@ -53,6 +53,7 @@ class Proposal < ActiveRecord::Base
using: {
tsearch: { dictionary: "spanish", tsvector_column: 'tsv' }
},
ignoring: :accents,
ranked_by: '(:tsearch + proposals.cached_votes_up)',
order_within_rank: "proposals.created_at DESC"
}