If i try to update a line_item on the cart page by...
# support
u
If i try to update a line_item on the cart page by putting a very high amount i get this ActiveModel error. Should there be a check to not return this error?
n
This is raised directly by
ActiveModel
. By default it looks like that an integer is represented with 4 bytes, if you need larger integers you should change the limit on the line item quantity attribute: https://edgeapi.rubyonrails.org/classes/ActiveModel/Type/Integer.html You should double check as well that your DB column can handle such large numbers