From 798ea648fe78555e460868b381b894fa386b432f Mon Sep 17 00:00:00 2001 From: Jeff Dutil Date: Fri, 30 Nov 2012 18:04:11 -0500 Subject: [PATCH] Pass @order not self. [Fixes #103] --- app/controllers/spree/checkout_controller_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index f1290b4..c0cff16 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/app/controllers/spree/checkout_controller_decorator.rb @@ -349,7 +349,7 @@ module Spree shipping_method = ShippingMethod.all.first shipping_default = [{ :default => true, :name => shipping_method.name, - :amount => ((shipping_method.calculator.compute(self).to_f) * 100).to_i }] + :amount => ((shipping_method.calculator.compute(@order).to_f) * 100).to_i }] end {