Sha256: f86e561200ec8c3e0b1837229bcc6505fc2250caf4bf3a028f467159d99f6cb9

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

module Spree
  class ShippingCategory < Spree::Base
    include Spree::UniqueName
    if defined?(Spree::Webhooks::HasWebhooks)
      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

5 entries across 5 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/models/spree/shipping_category.rb
spree_core-4.10.0 app/models/spree/shipping_category.rb
spree_core-4.9.0 app/models/spree/shipping_category.rb
spree_core-4.8.3 app/models/spree/shipping_category.rb
spree_core-4.8.2 app/models/spree/shipping_category.rb