Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Changelog entry for #7560: deprecate #filter in AS::Callbacks [ci…

… skip]
  • Loading branch information...
commit 89523397502431d0a8e99182fe5c7236884a495c 1 parent 35a8920
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 activesupport/CHANGELOG.md
View
22 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.
Please sign in to comment.
Something went wrong with that request. Please try again.