diff --git a/app/models/p_product_ref.rb b/app/models/p_product_ref.rb index 47855ec..348ef3e 100644 --- a/app/models/p_product_ref.rb +++ b/app/models/p_product_ref.rb @@ -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],