diff --git a/core/app/models/spree/order.rb b/core/app/models/spree/order.rb index 0a82aef993d..d130b66cadc 100644 --- a/core/app/models/spree/order.rb +++ b/core/app/models/spree/order.rb @@ -154,6 +154,8 @@ def self.find_by_param!(value) find_by! number: value end + delegate :recalculate, to: :recalculator + delegate :name, to: :bill_address, prefix: true, allow_nil: true alias_method :billing_name, :bill_address_name @@ -264,10 +266,6 @@ def recalculator alias_method :updater, :recalculator deprecate updater: :recalculator, deprecator: Spree::Deprecation - def recalculate - recalculator.recalculate - end - def assign_billing_to_shipping_address self.ship_address = bill_address if bill_address true