From 62ebfcb0901002c1377d5677ed1a0d062ab94ff0 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sun, 16 Apr 2023 13:02:26 -0600 Subject: Añade búsqueda de productos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/queries/searches/base_search.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/queries/searches/base_search.rb (limited to 'app/queries/searches/base_search.rb') diff --git a/app/queries/searches/base_search.rb b/app/queries/searches/base_search.rb new file mode 100644 index 0000000..b8c49d4 --- /dev/null +++ b/app/queries/searches/base_search.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Searches + # BaseSearch + class BaseSearch + def initialize(scope, params) + @scope = scope + @params = params + @scope_filter = ScopeFilters::ProductScopeFilter.new(scope, @params) + end + end +end -- cgit v1.2.3