Sha256: 60a164a27fe99b37c76fa9cf62bc7861a3766d0c5be48a8856fe11966c9ea49e

Contents?: true

Size: 295 Bytes

Versions: 94

Compression:

Stored size: 295 Bytes

Contents

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

Version data entries

94 entries across 94 versions & 2 rubygems

Version Path
solidus_core-2.5.2 app/models/spree/shipping_category.rb
solidus_core-2.5.1 app/models/spree/shipping_category.rb
solidus_core-2.5.0 app/models/spree/shipping_category.rb
solidus_core-2.5.0.rc1 app/models/spree/shipping_category.rb
solidus_core-2.5.0.beta2 app/models/spree/shipping_category.rb
solidus_core-2.5.0.beta1 app/models/spree/shipping_category.rb
solidus_core-2.4.2 app/models/spree/shipping_category.rb
solidus_core-2.3.1 app/models/spree/shipping_category.rb
solidus_core-2.4.1 app/models/spree/shipping_category.rb
solidus_core-2.2.2 app/models/spree/shipping_category.rb
solidus_core-2.1.1 app/models/spree/shipping_category.rb
solidus_core-2.0.3 app/models/spree/shipping_category.rb
solidus_core-1.4.2 app/models/spree/shipping_category.rb
solidus_core-1.3.2 app/models/spree/shipping_category.rb
solidus_core-1.2.3 app/models/spree/shipping_category.rb
solidus_core-1.1.4 app/models/spree/shipping_category.rb
solidus_core-1.0.7 app/models/spree/shipping_category.rb
solidus_core-2.4.0 app/models/spree/shipping_category.rb
solidus_core-2.4.0.rc1 app/models/spree/shipping_category.rb
solidus_core-2.4.0.beta1 app/models/spree/shipping_category.rb