Sha256: 2a7a33a1f6100d51d3054da6c80ec0da3a54fe2623e2b0f6e1c963845d01fe09

Contents?: true

Size: 349 Bytes

Versions: 8

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

module SolidusPrototypes
  module Spree
    module OptionTypeDecorator

      def self.prepended(base)
        base.class_eval do
          has_many :option_type_prototypes
          has_many :prototypes, through: :option_type_prototypes
        end
      end

      ::Spree::OptionType.prepend self
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solidus_prototypes-1.6.0 app/decorators/models/solidus_prototypes/spree/option_type_decorator.rb
solidus_prototypes-1.5.1 app/decorators/models/solidus_prototypes/spree/option_type_decorator.rb
solidus_prototypes-1.5.0 app/decorators/models/solidus_prototypes/spree/option_type_decorator.rb
solidus_prototypes-1.4.0 app/decorators/models/solidus_prototypes/spree/option_type_decorator.rb
solidus_prototypes-1.3.0 app/decorators/models/solidus_prototypes/spree/option_type_decorator.rb
solidus_prototypes-1.2.0 app/decorators/models/solidus_prototypes/spree/option_type_decorator.rb
solidus_prototypes-1.1.1 app/decorators/models/solidus_prototypes/spree/option_type_decorator.rb
solidus_prototypes-1.1.0 app/decorators/models/solidus_prototypes/spree/option_type_decorator.rb