mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Adapt exchange.involving scope to rails 4
This commit is contained in:
@@ -216,7 +216,7 @@ module OpenFoodNetwork
|
||||
|
||||
def order_cycle_exchange_ids_involving_my_enterprises
|
||||
# Any exchanges that my managed enterprises are involved in directly
|
||||
@order_cycle.exchanges.involving(managed_enterprises).pluck :id
|
||||
@order_cycle.exchanges.involving(managed_enterprises.select(:id)).pluck :id
|
||||
end
|
||||
|
||||
def order_cycle_exchange_ids_with_distributable_variants
|
||||
|
||||
Reference in New Issue
Block a user