aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-03-06 09:04:51 +0100
committerYves Senn <yves.senn@gmail.com>2015-03-06 09:04:51 +0100
commit081a3963ea2aab617a92874d7ef59ce98eee6a64 (patch)
tree56b4d4d672726a66ef612c34e857fb8eee45fdd3 /activesupport/CHANGELOG.md
parent1c1bced7b17c9b0d2866f43bd2b35a1be16dbcf0 (diff)
downloadrails-081a3963ea2aab617a92874d7ef59ce98eee6a64.tar.gz
rails-081a3963ea2aab617a92874d7ef59ce98eee6a64.tar.bz2
rails-081a3963ea2aab617a92874d7ef59ce98eee6a64.zip
`number_to_percentage` and `precision: 0` work with `NAN` and `INFINITY`.
Closes #19227.
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index f5fa70494a..1d21a18c16 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,10 @@
+* `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
+ as input when `precision: 0` is used.
+
+ Fixes #19227.
+
+ *Yves Senn*
+
* Take DST into account when locating TimeZone from Numeric.
When given a specific offset, use the first result found where the