Sha256: a9d9cd6f148ab1dcae590549899074e817bcc2358a5d8b7ed8cfaf3de3e5020e

Contents?: true

Size: 366 Bytes

Versions: 16

Compression:

Stored size: 366 Bytes

Contents

module Spree
  class ShippingCategory < Spree::Base
    include UniqueName
    if defined?(Spree::Webhooks)
      include Spree::Webhooks::HasWebhooks
    end

    with_options inverse_of: :shipping_category do
      has_many :products
      has_many :shipping_method_categories
    end
    has_many :shipping_methods, through: :shipping_method_categories
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_core-4.6.6 app/models/spree/shipping_category.rb
spree_core-4.5.5 app/models/spree/shipping_category.rb
spree_core-4.5.4 app/models/spree/shipping_category.rb
spree_core-4.6.5 app/models/spree/shipping_category.rb
spree_core-4.7.2 app/models/spree/shipping_category.rb
spree_core-4.7.1 app/models/spree/shipping_category.rb
spree_core-4.6.4 app/models/spree/shipping_category.rb
spree_core-4.7.0 app/models/spree/shipping_category.rb
spree_core-4.6.3 app/models/spree/shipping_category.rb
spree_core-4.6.2 app/models/spree/shipping_category.rb
spree_core-4.6.1 app/models/spree/shipping_category.rb
spree_core-4.6.0 app/models/spree/shipping_category.rb
spree_core-4.5.3 app/models/spree/shipping_category.rb
spree_core-4.5.2 app/models/spree/shipping_category.rb
spree_core-4.5.1 app/models/spree/shipping_category.rb
spree_core-4.5.0 app/models/spree/shipping_category.rb