Module: Spree::LineItemPriceUpdater
- Defined in:
- app/models/spree/line_item_decorator.rb
Instance Method Summary collapse
Instance Method Details
#set_pricing_attributes ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/models/spree/line_item_decorator.rb', line 3 def set_pricing_attributes super if quantity_changed? self.price = variant.volume_price(quantity, order.user) end end |