mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Rename method for clarity, remove outdated specs for OrderPopulator
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Spree::OrderPopulator.class_eval do
|
||||
def populate_with_distribution_validation(from_hash)
|
||||
@distributor, @order_cycle = orig_distributor_and_order_cycle
|
||||
@distributor, @order_cycle = distributor_and_order_cycle
|
||||
|
||||
# Refactor: We may not need this validation - we can't change distribution here, so
|
||||
# this validation probably can't fail
|
||||
@@ -32,7 +32,7 @@ Spree::OrderPopulator.class_eval do
|
||||
|
||||
private
|
||||
|
||||
def orig_distributor_and_order_cycle
|
||||
def distributor_and_order_cycle
|
||||
[@order.distributor, @order.order_cycle]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user