Permalink
Browse files

Merge pull request #7591 from bogdan/callbacks-changelog

Changelog entry for PR #7560
  • Loading branch information...
2 parents 7b2363f + ca80067 commit 43d312a725dc981700eb931b933fa49b4670a178 @josevalim josevalim committed Sep 10, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 activesupport/CHANGELOG.md
View
@@ -1,5 +1,24 @@
## Rails 4.0.0 (unreleased) ##
+* Deprecate on the fly monkey patch of objects in AS::Callbacks.
+ This one is probably related to before_filters:
+
+ before_filter MyFilter.new
+
+ class MyFilter
+ def filter(controller)
+ end
+ end
+
+ is now deprecated. Use:
+
+ before_filter MyFilter.new
+
+ class MyFilter
+ def before(controller)
+ end
+ end
+
* `ERB::Util.html_escape` encodes single quote as `#39`. Decimal form has better support in old browsers. *Kalys Osmonov*
* `ActiveSupport::Callbacks`: deprecate monkey patch of object callbacks.

0 comments on commit 43d312a

Please sign in to comment.