lib/friendly_shipping/rate.rb in friendly_shipping-0.7.3 vs lib/friendly_shipping/rate.rb in friendly_shipping-0.8.0
- old
+ new
@@ -37,9 +37,9 @@
end
def total_amount
raise NoAmountsGiven if amounts.empty?
- amounts.map { |_name, amount| amount }.sum
+ amounts.map { |_name, amount| amount }.sum(Money.new(0, 'USD'))
end
end
end