mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-16 04:24:23 +00:00
Remove is_master and not_master scopes
(cherry picked from commit 1daab8994d)
This commit is contained in:
@@ -33,7 +33,7 @@ module OpenFoodNetwork
|
||||
end
|
||||
|
||||
def query_scope
|
||||
Spree::Variant.where(is_master: false).
|
||||
Spree::Variant.
|
||||
ransack(search_params.merge(m: 'or')).
|
||||
result.
|
||||
order("spree_products.name, display_name, display_as, spree_products.variant_unit_name").
|
||||
|
||||
@@ -33,7 +33,6 @@ module Reporting
|
||||
|
||||
def child_variants
|
||||
Spree::Variant.
|
||||
where(is_master: false).
|
||||
joins(:product).
|
||||
merge(visible_products).
|
||||
order('spree_products.name')
|
||||
|
||||
Reference in New Issue
Block a user