Pass @order not self. [Fixes #103]

This commit is contained in:
Jeff Dutil 2012-11-30 18:04:11 -05:00
parent 00b170eed2
commit 798ea648fe
1 changed files with 1 additions and 1 deletions

View File

@ -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
{