Sha256: 4ec6acaaf4e30874651bb83ef9f775e4cf042c576faf7c23b7073019b44ec65b

Contents?: true

Size: 199 Bytes

Versions: 3

Compression:

Stored size: 199 Bytes

Contents

Spree::LineItem.class_eval do

  def reload_price
    if variant
      self.price = variant.price
      self.cost_price = variant.cost_price
      self.currency = variant.currency
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_repeat_order-2.2.2 app/models/spree/line_item_decorator.rb
spree_repeat_order-2.2.1 app/models/spree/line_item_decorator.rb
spree_repeat_order-2.1.9 app/models/spree/line_item_decorator.rb