Sha256: 4f4a427069b53f9996335a9c98a72a3d1754c3960bf8305556b22182e86ec7b9

Contents?: true

Size: 312 Bytes

Versions: 28

Compression:

Stored size: 312 Bytes

Contents

Spree::Sample.load_sample("products")

size = Spree::OptionType.find_by_presentation!("Size")
color = Spree::OptionType.find_by_presentation!("Color")

ror_baseball_jersey = Spree::Product.find_by_name!("Ruby on Rails Baseball Jersey")
ror_baseball_jersey.option_types = [size, color]
ror_baseball_jersey.save!

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
solidus_sample-1.2.3 db/samples/product_option_types.rb
solidus_sample-1.1.4 db/samples/product_option_types.rb
solidus_sample-1.0.7 db/samples/product_option_types.rb
solidus_sample-1.0.6 db/samples/product_option_types.rb
solidus_sample-1.2.2 db/samples/product_option_types.rb
solidus_sample-1.2.1 db/samples/product_option_types.rb
solidus_sample-1.1.3 db/samples/product_option_types.rb
solidus_sample-1.0.5 db/samples/product_option_types.rb
solidus_sample-1.2.0 db/samples/product_option_types.rb
solidus_sample-1.2.0.rc2 db/samples/product_option_types.rb
solidus_sample-1.0.4 db/samples/product_option_types.rb
solidus_sample-1.1.2 db/samples/product_option_types.rb
solidus_sample-1.2.0.rc1 db/samples/product_option_types.rb
solidus_sample-1.2.0.beta1 db/samples/product_option_types.rb
solidus_sample-1.0.3 db/samples/product_option_types.rb
solidus_sample-1.1.1 db/samples/product_option_types.rb
solidus_sample-1.1.0 db/samples/product_option_types.rb
solidus_sample-1.1.0.pre2 db/samples/product_option_types.rb
solidus_sample-1.1.0.pre1 db/samples/product_option_types.rb
solidus_sample-1.1.0.beta1 db/samples/product_option_types.rb