Sha256: 1f749e03fa658030e98dc4a8b801c46069523074c9acdf8a80134963f64c77b2

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

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

    attr_accessible :name, :presentation
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/models/spree/option_value.rb
spree_core-1.1.5 app/models/spree/option_value.rb
spree_core-1.1.4 app/models/spree/option_value.rb
spree_core-1.1.3 app/models/spree/option_value.rb
spree_core-1.1.2 app/models/spree/option_value.rb
spree_core-1.1.2.rc1 app/models/spree/option_value.rb