Sha256: bf5d13d8fcd02fda22219944c47a542ee8dd5decebf22b57c6617abd65a0878d

Contents?: true

Size: 348 Bytes

Versions: 8

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

module SolidusPrototypes
  module Spree
    module TaxonDecorator

      def self.prepended(base)
        base.class_eval do
          has_many :prototype_taxons, dependent: :destroy
          has_many :prototypes, through: :prototype_taxons
        end
      end

      ::Spree::Taxon.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/taxon_decorator.rb
solidus_prototypes-1.5.1 app/decorators/models/solidus_prototypes/spree/taxon_decorator.rb
solidus_prototypes-1.5.0 app/decorators/models/solidus_prototypes/spree/taxon_decorator.rb
solidus_prototypes-1.4.0 app/decorators/models/solidus_prototypes/spree/taxon_decorator.rb
solidus_prototypes-1.3.0 app/decorators/models/solidus_prototypes/spree/taxon_decorator.rb
solidus_prototypes-1.2.0 app/decorators/models/solidus_prototypes/spree/taxon_decorator.rb
solidus_prototypes-1.1.1 app/decorators/models/solidus_prototypes/spree/taxon_decorator.rb
solidus_prototypes-1.1.0 app/decorators/models/solidus_prototypes/spree/taxon_decorator.rb