aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorRosa Gutierrez <rosa.ge@gmail.com>2019-01-27 11:18:40 +0100
committerRosa Gutierrez <rosa.ge@gmail.com>2019-01-30 16:10:06 +0100
commit2ce8455cc994c788a44f5b414769cb2dbee4577d (patch)
tree1af0eea2ab1f1db2200ea21cd70f9d7fe330ceab /activesupport/CHANGELOG.md
parent9bb07b79e4bd855f24c098ba636dae15340e03ed (diff)
downloadrails-2ce8455cc994c788a44f5b414769cb2dbee4577d.tar.gz
rails-2ce8455cc994c788a44f5b414769cb2dbee4577d.tar.bz2
rails-2ce8455cc994c788a44f5b414769cb2dbee4577d.zip
Support before_reset callback in CurrentAttributes
This is useful when we need to do some work associated to `Current.reset` but that work depends on the values of the current attributes themselves. This cannot be done in the supported `resets` callback because when the block is executed, CurrentAttributes's instance has already been reset. For symmetry, `after_reset` is defined as alias of `resets`.
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 684ecddb18..13b82c1ff3 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,10 +1,13 @@
+* Add `before_reset` callback to `CurrentAttributes` and define `after_reset` as an alias of `resets` for symmetry.
+
+ *Rosa Gutierrez*
+
* Add `ActiveSupport::HashWithIndifferentAccess#assoc`.
`assoc` can now be called with either a string or a symbol.
*Stefan Schüßler*
-
## Rails 6.0.0.beta1 (January 18, 2019) ##
* Remove deprecated `Module#reachable?` method.