Permalink
Browse files

Update app/models/spree/line_item_decorator.rb

Fixes #36 the method copy_price returns a currency string and updates self.price
so the return value is of no use any more
  • Loading branch information...
1 parent d40236f commit c14a41ae625a6987d394fbf75d9400ba8af68b8e @erikkallen erikkallen committed Feb 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/models/spree/line_item_decorator.rb
@@ -7,7 +7,8 @@
old_copy_price = instance_method(:copy_price)
define_method(:copy_price) do
- new_price = old_copy_price.bind(self).call
+ old_copy_price.bind(self).call
+ new_price = self.price
if variant and changed? and changes.keys.include? 'quantity'
vprice = self.variant.volume_price(self.quantity)

0 comments on commit c14a41a

Please sign in to comment.