Sha256: 244f790a45a20632e5594f59112ec07e513137341f1394696b0002018122c523

Contents?: true

Size: 257 Bytes

Versions: 6

Compression:

Stored size: 257 Bytes

Contents

module Spree
  module VariantDecorator
    def self.included(base)
      base.class_eval do
        has_many :attachments, as: :viewable, dependent: :destroy, inverse_of: :viewable
      end
    end
  end
end

Spree::Variant.include Spree::VariantDecorator

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_product_attachments-0.0.7 app/models/spree/variant_decorator.rb
solidus_product_attachments-0.0.6 app/models/spree/variant_decorator.rb
solidus_product_attachments-0.0.5 app/models/spree/variant_decorator.rb
solidus_product_attachments-0.0.4 app/models/spree/variant_decorator.rb
solidus_product_attachments-0.0.2 app/models/spree/variant_decorator.rb
solidus_product_attachments-0.0.1 app/models/spree/variant_decorator.rb