Commit 5fca702f by Nguyen Quoc Kien

Fix: pull request #1..check_quantity?

parent 777c305a
...@@ -58,11 +58,7 @@ class CartProductsController < ApplicationController ...@@ -58,11 +58,7 @@ class CartProductsController < ApplicationController
end end
def check_quantity? def check_quantity?
if params[:quantity].to_i > 0 params[:quantity].to_i > 0 ? true : false
return true
else
return false
end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment