Sha256: 47b2618f9036a285ee66bd6bdf3a13ff678b7f8c27dd98a0861f7dd439ad0dde
Contents?: true
Size: 919 Bytes
Versions: 122
Compression:
Stored size: 919 Bytes
Contents
Spree::Sample.load_sample("option_types") size = Spree::OptionType.find_by_presentation!("Size") color = Spree::OptionType.find_by_presentation!("Color") Spree::OptionValue.create!([ { :name => "Small", :presentation => "S", :position => 1, :option_type => size }, { :name => "Medium", :presentation => "M", :position => 2, :option_type => size }, { :name => "Large", :presentation => "L", :position => 3, :option_type => size }, { :name => "Extra Large", :presentation => "XL", :position => 4, :option_type => size }, { :name => "Red", :presentation => "Red", :position => 1, :option_type => color, }, { :name => "Green", :presentation => "Green", :position => 2, :option_type => color, }, { :name => "Blue", :presentation => "Blue", :position => 3, :option_type => color } ])
Version data entries
122 entries across 122 versions & 4 rubygems