Sha256: 9f3bcb2d8737d5778db6fe8ef95414cb2dbe1ff468e3d1d74fdd557f47c695cd

Contents?: true

Size: 262 Bytes

Versions: 7

Compression:

Stored size: 262 Bytes

Contents

module Spree
  class ShippingCategory < Spree::Base
    validates :name, presence: true
    has_many :products, inverse_of: :shipping_category
    has_many :shipping_method_categories
    has_many :shipping_methods, through: :shipping_method_categories
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_core-2.4.0.rc2 app/models/spree/shipping_category.rb
spree_core-2.4.0.rc1 app/models/spree/shipping_category.rb
spree_core-2.3.4 app/models/spree/shipping_category.rb
spree_core-2.3.3 app/models/spree/shipping_category.rb
spree_core-2.3.2 app/models/spree/shipping_category.rb
spree_core-2.3.1 app/models/spree/shipping_category.rb
spree_core-2.3.0 app/models/spree/shipping_category.rb