Sha256: 4a921b5e37d33ee8012810e055a073dc398f6e5b328f2f16d145f2581dd79352
Contents?: true
Size: 519 Bytes
Versions: 17
Compression:
Stored size: 519 Bytes
Contents
prototypes = [ { name: "Shirt", properties: ["Manufacturer", "Brand", "Model", "Shirt Type", "Sleeve Type", "Material", "Fit", "Gender"] }, { name: "Bag", properties: ["Type", "Size", "Material"] }, { name: "Mugs", properties: ["Size", "Type"] } ] prototypes.each do |prototype_attrs| prototype = Spree::Prototype.create!(name: prototype_attrs[:name]) prototype_attrs[:properties].each do |property| prototype.properties << Spree::Property.find_by_name!(property) end end
Version data entries
17 entries across 17 versions & 1 rubygems