add ref to search

This commit is contained in:
Barnabé 2021-09-29 16:56:58 +02:00
parent e45208a394
commit 7e65e3374e

View File

@ -51,7 +51,7 @@ class PProductRef < ApplicationRecord
include PgSearch::Model
pg_search_scope :global_search,
against: :cc_name,
against: [:ref, :cc_name],
associated_against: {
s_brand: [ :code, :name ],
p_product: [:code],