aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index fa2f2384f9..0dc74ecd8c 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,17 @@
+* Fix `to_param` behavior when there are nested empty hashes.
+
+ Before:
+
+ params = {c: 3, d: {}}.to_param # => "&c=3"
+
+ After:
+
+ params = {c: 3, d: {}}.to_param # => "c=3&d="
+
+ Fixes #13892.
+
+ *Hincu Petru*
+
* Deprecate custom `BigDecimal` serialization
Deprecate the custom `BigDecimal` serialization that is included when requiring