mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Use scope
This commit is contained in:
@@ -64,7 +64,7 @@ module OpenFoodNetwork
|
||||
end
|
||||
|
||||
def filter_not_deleted(variants)
|
||||
variants.where("spree_variants.deleted_at is null")
|
||||
variants.not_deleted
|
||||
end
|
||||
|
||||
def filter_on_hand(variants)
|
||||
|
||||
Reference in New Issue
Block a user