Adapt exchange.involving scope to rails 4

This commit is contained in:
luisramos0
2019-04-06 22:17:00 +01:00
parent 5184fa540c
commit a82b1d8129

View File

@@ -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