diff options
author | HombreLaser <sebastian-440@live.com> | 2023-04-06 14:53:02 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-04-06 14:53:02 -0600 |
commit | 61110336bc5a924346f0654cb5bb812101c3bc7a (patch) | |
tree | d51511956e1246819c2480a4f3c30b6074bfe7ad /app/controllers/api | |
parent | fc191f53503629087fd453e626ec2a4c58e0a21b (diff) |
Añade specs de cxarts_controller
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/carts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/carts_controller.rb b/app/controllers/api/carts_controller.rb index 0e14c17..d7c1529 100644 --- a/app/controllers/api/carts_controller.rb +++ b/app/controllers/api/carts_controller.rb @@ -20,7 +20,7 @@ module Api end def destroy - if @cart.delete_product(product.id) + if @cart.delete_product(params[:id]) render status: :no_content else render status: :not_found |