aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2017-07-27 14:59:43 +0100
committerGitHub <noreply@github.com>2017-07-27 14:59:43 +0100
commit566c2c4498cc88cae3f1a999e4cb49f836e89efb (patch)
treedee04e8a7abaf285aa0181240aa43f58419e4d94 /activesupport/CHANGELOG.md
parent4caf751fffcd0d25b563bd5fd13fc075560aa8d5 (diff)
parentbfa878d3b2a814db4d781143c9f5248b642900d0 (diff)
downloadrails-566c2c4498cc88cae3f1a999e4cb49f836e89efb.tar.gz
rails-566c2c4498cc88cae3f1a999e4cb49f836e89efb.tar.bz2
rails-566c2c4498cc88cae3f1a999e4cb49f836e89efb.zip
Merge pull request #29971 from rails/fix-duration-division
Fix division where a duration is the denominator
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 457eb84a62..42d3467e7d 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,13 @@
+* Fix division where a duration is the denominator
+
+ PR #29163 introduced a change in behavior when a duration was the denominator
+ in a calculation - this was incorrect as dividing by a duration should always
+ return a `Numeric`. The behavior of previous versions of Rails has been restored.
+
+ Fixes #29592.
+
+ *Andrew White*
+
* Add purpose and expiry support to `ActiveSupport::MessageVerifier` &
`ActiveSupport::MessageEncryptor`.