app/controllers/comable/orders_controller.rb in comable_frontend-0.3.3 vs app/controllers/comable/orders_controller.rb in comable_frontend-0.3.4

- old
+ new

@@ -52,11 +52,11 @@ flash[:alert] = Comable.t('carts.empty') redirect_to comable.cart_path end def ensure_saleable_stocks - return if current_order.soldout_stocks.empty? - flash[:alert] = Comable.t('errors.messages.products_soldout') + return if current_order.stocked_items.empty? + flash[:alert] = Comable.t('errors.messages.out_of_stocks') redirect_to comable.cart_path end def load_order @order = current_order