aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-10-21 17:24:18 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-10-21 17:44:26 +0900
commit01ae39660243bc5f0a986e20f9c9bff312b1b5f8 (patch)
treed517118d32a12916ed97e5e9a64a6a1bd04d8867 /activesupport/CHANGELOG.md
parentd6f3b91aaa4af88eda2344629afed64640d51e0f (diff)
downloadrails-01ae39660243bc5f0a986e20f9c9bff312b1b5f8.tar.gz
rails-01ae39660243bc5f0a986e20f9c9bff312b1b5f8.tar.bz2
rails-01ae39660243bc5f0a986e20f9c9bff312b1b5f8.zip
Let Hash#slice return a Hash
In order to keep this method compatible with the Ruby 2.5 version of Hash#slice. This bahavior is actually slightly incompatibile with previous versions of Active Support but it might not cause a real problem, since HWIA, the biggest use case of Hash subclassing here, already overrides `slice` to return another HWIA.
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index c7924fa9ae..7696fdcd7a 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,7 @@
+* `Hash#slice` now falls back to Ruby 2.5+'s built-in definition if defined.
+
+ *Akira Matsuda*
+
* Deprecate `secrets.secret_token`.
The architecture for secrets had a big upgrade between Rails 3 and Rails 4,