aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorKassio Borges <kassioborgesm@gmail.com>2014-01-29 18:07:52 -0200
committerKassio Borges <kassioborgesm@gmail.com>2014-01-29 18:47:08 -0200
commit42566626e9f9ab8d56194a32fd7e674a20c34fb6 (patch)
treed285e15bd4b6c04f09948cecadb87693c02b0208 /activesupport
parentfec1028d088294c30f568e46db3bbd054a9330ff (diff)
downloadrails-42566626e9f9ab8d56194a32fd7e674a20c34fb6.tar.gz
rails-42566626e9f9ab8d56194a32fd7e674a20c34fb6.tar.bz2
rails-42566626e9f9ab8d56194a32fd7e674a20c34fb6.zip
Fix documentation of new controller filters api [ci skip]
The api for filters with classes change and the guides weren't updated. Now the class must respond for methods with the same name as the filter, so the `before_action` calls a `before` method, and so on. The method `#filter` has been deprecated in 4.0.0 and has been removed in 4.1.0: #7560
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 95bf5601f2..5f9591ccb1 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,10 @@
+* Remove the deprecation about the `#filter` method
+
+ Filter objects should now rely on method corresponding to the filter type
+ (e.g. `#before`)
+
+ *Aaron Patterson*
+
* Add `ActiveSupport::JSON::Encoding.time_precision` as a way to configure the
precision of encoded time values: