Sha256: 4e15af16db59cf484d33fe9fbb2ea63d91c7584f6ee10789d9887d59c0750176

Contents?: true

Size: 335 Bytes

Versions: 9

Compression:

Stored size: 335 Bytes

Contents

module Spree
  class OptionValue < ActiveRecord::Base
    belongs_to :option_type
    acts_as_list scope: :option_type
    has_and_belongs_to_many :variants, join_table: 'spree_option_values_variants', class_name: "Spree::Variant"

    validates :name, :presentation, presence: true

    attr_accessible :name, :presentation
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-2.0.7 app/models/spree/option_value.rb
spree_core-2.0.6 app/models/spree/option_value.rb
spree_core-2.0.5 app/models/spree/option_value.rb
spree_core-2.0.4 app/models/spree/option_value.rb
spree_core-2.0.3 app/models/spree/option_value.rb
spree_core-2.0.2 app/models/spree/option_value.rb
spree_core-2.0.1 app/models/spree/option_value.rb
spree_core-2.0.0 app/models/spree/option_value.rb
spree_core-2.0.0.rc1 app/models/spree/option_value.rb