app/models/concerns/bmc/search.rb in bmc-1.4.3 vs app/models/concerns/bmc/search.rb in bmc-1.5.0
- old
+ new
@@ -18,10 +18,10 @@
fields.map { |field|
"(UNACCENT(CAST(#{field} AS TEXT)) ILIKE :w#{index})"
}.join(" OR ")
}.map { |e| "(#{e})" }.join(" AND ")
- sql_params = words.map.with_index { |word, index| ["w#{index}".to_sym, "%#{word}%"] }.to_h
+ sql_params = words.map.with_index { |word, index| [:"w#{index}", "%#{word}%"] }.to_h
where(sql_query, sql_params)
end # def search
end # class_methods
end # class BMC::Search