aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-09-07 11:03:07 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-09-07 11:12:00 -0300
commit89523397502431d0a8e99182fe5c7236884a495c (patch)
tree13c5b0d0043ece8d93eff7db16272b86df4dd712 /activesupport
parent35a8920cdd4ca1b353aa7c677c21567a31f3f4a7 (diff)
downloadrails-89523397502431d0a8e99182fe5c7236884a495c.tar.gz
rails-89523397502431d0a8e99182fe5c7236884a495c.tar.bz2
rails-89523397502431d0a8e99182fe5c7236884a495c.zip
Add Changelog entry for #7560: deprecate #filter in AS::Callbacks [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/CHANGELOG.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 761780fb8b..4f8dd20bd4 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,5 +1,27 @@
## Rails 4.0.0 (unreleased) ##
+* `ActiveSupport::Callbacks`: deprecate monkey patch of object callbacks.
+ Using the #filter method like this:
+
+ before_filter MyFilter.new
+
+ class MyFilter
+ def filter(controller)
+ end
+ end
+
+ Is now deprecated with recommendation to use the corresponding filter type
+ (`#before`, `#after` or `#around`):
+
+ before_filter MyFilter.new
+
+ class MyFilter
+ def before(controller)
+ end
+ end
+
+ *Bogdan Gusiev*
+
* An optional block can be passed to `HashWithIndifferentAccess#update` and `#merge`.
The block will be invoked for each duplicated key, and used to resolve the conflict,
thus replicating the behaviour of the corresponding methods on the `Hash` class.