Created
January 13, 2014 16:30
-
-
Save Willianvdv/8403243 to your computer and use it in GitHub Desktop.
Spree require_master_price crash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> Spree.version | |
=> "2.1.4.beta" | |
>> Spree::Config[:require_master_price] = true | |
>> attr = {:name=>"The Other Product", :price=>19.99, :shipping_category_id=>1, :product_properties_attributes=>[{:property_name=>"fabric", :value=>"cotton"}]} | |
>> pr = Spree::Product.new attr | |
>> pr.save! | |
RuntimeError: No master variant found to infer price |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment