Sha256: 4561d6c069d7a256c7c859ebb630ef5bf3a376f2ea802df7ba0eb4d6730d31eb
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
module ShopDiscounts module Models module FormLineItem def self.included(base) base.class_eval do def create_with_discounts @result = create_without_discounts @order.discountables.each do |discountable| discountable.create_shop_line_items end @result end alias_method_chain :create, :discounts end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-shop_discounts-extension-0.0.11 | lib/shop_discounts/models/form_line_item.rb |
radiant-shop_discounts-extension-0.0.10 | lib/shop_discounts/models/form_line_item.rb |