From 7e65e3374e4ab641dd2de25050f0280160f65e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Wed, 29 Sep 2021 16:56:58 +0200 Subject: [PATCH] add ref to search --- app/models/p_product_ref.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],