Sha256: a058ae62e661d62599c735413ffcf2ff857c2bc6c59bd3ada4c400db7ea1c5d6
Contents?: true
Size: 834 Bytes
Versions: 26
Compression:
Stored size: 834 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
26 entries across 26 versions & 1 rubygems