Sha256: f0a77d46c45e1a33be69ba7e33f853e9bf4877738ad639bba4434f35715021e9

Contents?: true

Size: 146 Bytes

Versions: 4

Compression:

Stored size: 146 Bytes

Contents

Spree::Order.class_eval do

  def delete_inactive_items
    self.line_items.each{ |line_item| line_item.destroy unless line_item.live? }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_active_sale-2.0.0 app/models/spree/order_decorator.rb
spree_active_sale-1.3.2 app/models/spree/order_decorator.rb
spree_active_sale-1.3.1 app/models/spree/order_decorator.rb
spree_active_sale-1.3.0 app/models/spree/order_decorator.rb