lib/carter/controller_additions.rb in carter-0.7.1 vs lib/carter/controller_additions.rb in carter-0.7.2

- old
+ new

@@ -70,10 +70,10 @@ end private def load_cart_instance - find_cart_by_session || find_cart_by_shopper || ::Cart.new + find_cart_by_session || find_cart_by_shopper || ::Cart.new(:shopper => current_shopper) end def find_cart_by_shopper ::Cart.with_state(default_cart_state).first(:conditions => {:shopper_id => current_shopper.id, :shopper_type => current_shopper.class.name} ) if current_shopper && Carter.settings.persist_by_shopper?