[#2179] Generate denormalized search terms value for Dossier

This commit is contained in:
Frederic Merizen 2018-07-25 19:34:06 +02:00
parent 01ca8cc3cc
commit 0e639030f9
16 changed files with 354 additions and 0 deletions

View file

@ -20,6 +20,10 @@ class Champ < ApplicationRecord
mandatory? && value.blank?
end
def search_terms
[ to_s ]
end
def to_s
if value.present?
string_value