Sha256: b2221ee2455f9c4267cb5f162e5d0adbbb57c38e3cf1d65ead7e5c835b5e08d9

Contents?: true

Size: 316 Bytes

Versions: 30

Compression:

Stored size: 316 Bytes

Contents

module Spree
  class OptionValueVariant < Spree::Base
    belongs_to :option_value, class_name: 'Spree::OptionValue'
    belongs_to :variant, touch: true, class_name: 'Spree::Variant'

    validates :option_value, :variant, presence: true
    validates :option_value_id, uniqueness: { scope: :variant_id }
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
spree_core-4.8.3 app/models/spree/option_value_variant.rb
spree_core-4.8.2 app/models/spree/option_value_variant.rb
spree_core-4.7.3 app/models/spree/option_value_variant.rb
spree_core-4.6.6 app/models/spree/option_value_variant.rb
spree_core-4.5.5 app/models/spree/option_value_variant.rb
spree_core-4.3.3 app/models/spree/option_value_variant.rb
spree_core-4.4.1 app/models/spree/option_value_variant.rb
spree_core-4.5.4 app/models/spree/option_value_variant.rb
spree_core-4.6.5 app/models/spree/option_value_variant.rb
spree_core-4.7.2 app/models/spree/option_value_variant.rb
spree_core-4.7.1 app/models/spree/option_value_variant.rb
spree_core-4.6.4 app/models/spree/option_value_variant.rb
spree_core-4.7.0 app/models/spree/option_value_variant.rb
spree_core-4.6.3 app/models/spree/option_value_variant.rb
spree_core-4.6.2 app/models/spree/option_value_variant.rb
spree_core-4.6.1 app/models/spree/option_value_variant.rb
spree_core-4.6.0 app/models/spree/option_value_variant.rb
spree_core-4.5.3 app/models/spree/option_value_variant.rb
spree_core-4.5.2 app/models/spree/option_value_variant.rb
spree_core-4.5.1 app/models/spree/option_value_variant.rb