www.byjp.me/content/notes/twitter/644834528339587072/index.md
2024-04-30 13:31:06 +01:00

7 lines
408 B
Markdown

---
date: "2015-09-18T11:25:06Z"
tags:
- imported
- from-twitter
---
"Ugh": Rails' numericality validators convert to Float before comparisons. Don't use them with BigDecimals! [https://api.rubyonrails.org/classes/ActiveModel/Validations/HelperMethods.html#method-i-validates_numericality_of](https://api.rubyonrails.org/classes/ActiveModel/Validations/HelperMethods.html#method-i-validates_numericality_of)