Sha256: 73e307def00c7620ce440eff7d496955b08571227dd2c60697d6774341637969

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

module Spree
  Variant.class_eval do
    has_many :add_on_mall_prices, class_name: 'Spree::AddOnMallPrice'

#   enable variants to CRUD each own add_on_maker_variants by accept nesting as child
    accepts_nested_attributes_for :add_on_mall_prices, allow_destroy: true

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_malls-0.1.1 app/models/spree/variant_decorator.rb