mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-16 04:24:23 +00:00
Only require OrderCycleShippingMethod records if people want to override the default shipping methods
It makes things much simpler if we return all shipping methods by default without needing OrderCycleShippingMethod records to be added to the database. Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
committed by
Filipe
parent
4e0bf75ecf
commit
fc4f951a1a
@@ -57,9 +57,6 @@ module SampleData
|
||||
log "- #{name}"
|
||||
cycle = create_order_cycle_with_fee(name, coordinator)
|
||||
create_exchanges(cycle, supplier_names, distributor_names, data)
|
||||
return if cycle.reload.attachable_shipping_methods.none?
|
||||
|
||||
cycle.shipping_method_ids = cycle.attachable_shipping_methods.pluck(:id)
|
||||
end
|
||||
|
||||
def create_order_cycle_with_fee(name, coordinator)
|
||||
|
||||
Reference in New Issue
Block a user