Sha256: 0cc9d27b0a03b2d3cfb316df7b808f9fdd9dba7cac09874fa66e793966a39169
Contents?: true
Size: 867 Bytes
Versions: 40
Compression:
Stored size: 867 Bytes
Contents
# frozen_string_literal: true 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
40 entries across 40 versions & 2 rubygems