Sha256: d2548e2b9a0790e4c77b6cbcffa4b3d20a7d8077a8a508f619493699571fe297
Contents?: true
Size: 755 Bytes
Versions: 31
Compression:
Stored size: 755 Bytes
Contents
category = ShopCategory.create({ :page_attributes => { :title => 'Category', :slug => 'category', :parent => Page.first, :layout => Layout.find_by_name(Radiant::Config['shop.layout_category']), :status_id => 100, :parts_attributes => [{ :name => 'description', :content => 'I am a category' }] } }) product = ShopProduct.create({ :price => 10.00, :page_attributes => { :title => 'Product', :parent => category.page, :slug => 'product', :layout => Layout.find_by_name(Radiant::Config['shop.layout_product']), :status_id => 100, :parts_attributes => [{ :name => 'description', :content => 'I am a product' }] } })
Version data entries
31 entries across 31 versions & 1 rubygems