aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/4_1_release_notes.md
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 /guides/source/4_1_release_notes.md
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 'guides/source/4_1_release_notes.md')
-rw-r--r--guides/source/4_1_release_notes.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/4_1_release_notes.md b/guides/source/4_1_release_notes.md
index 477268f4bc..7399bfb5de 100644
--- a/guides/source/4_1_release_notes.md
+++ b/guides/source/4_1_release_notes.md
@@ -567,6 +567,9 @@ for detailed changes.
* Removed deprecated `assert_present` and `assert_blank` methods, use `assert
object.blank?` and `assert object.present?` instead.
+* Remove deprecated `#filter` method for filter objects, use the corresponding
+ method instead (e.g. `#before` for a before filter).
+
### Deprecations
* Deprecated `Numeric#{ago,until,since,from_now}`, the user is expected to