mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-20 00:37:26 +00:00
Inject only needed enterprises into cart and checkout
This commit is contained in:
@@ -231,8 +231,8 @@ class Enterprise < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def relatives_and_oc_producers(order_cycles)
|
||||
enterprise_ids = Exchange.in_order_cycle(order_cycles).incoming.pluck :sender_id
|
||||
Enterprise.relatives_of_one_union_others(id, enterprise_ids)
|
||||
oc_producer_ids = Exchange.in_order_cycle(order_cycles).incoming.pluck :sender_id
|
||||
Enterprise.relatives_of_one_union_others(id, oc_producer_ids)
|
||||
end
|
||||
|
||||
def relatives_including_self
|
||||
|
||||
Reference in New Issue
Block a user