#order ⇒ Object

Instance Method Details

#populate(variant_id, quantity, options = {}) ⇒ Object

12
13
14
15
16
17

# File 'app/models/spree/order_populator.rb', line 12defpopulate(variant_id,quantity,options={})# protect against passing a nil hash being passed in
# due to an empty params[:options]
attempt_cart_add(variant_id,quantity,options||{})valid?end