Add translations to proposal pg_search_scope

Some Proposal attributes are now translatable so we need to include all
existing translations on pg_search scope.
This commit is contained in:
Senén Rodero Rodríguez
2019-01-12 14:56:06 +01:00
committed by voodoorai2000
parent 0f4fcfb20e
commit f572d5b579
3 changed files with 46 additions and 17 deletions

View File

@@ -23,15 +23,15 @@ module Globalizable
private
def searchable_globalized_values
values = {}
translations.each do |translation|
Globalize.with_locale(translation.locale) do
values.merge! searchable_translations_definitions
def searchable_globalized_values
values = {}
translations.each do |translation|
Globalize.with_locale(translation.locale) do
values.merge! searchable_translations_definitions
end
end
values
end
values
end
end
class_methods do