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