aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-09 17:14:47 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-09 17:14:47 +0000
commit677d92299b36a0eeaf8ec6aec211f5e6e325fe0d (patch)
tree44bca5e387eec77819bf42272453217aee9e53d2 /actionpack/CHANGELOG
parentc83683202a6f7aa88facc795189fcbf8549760cf (diff)
downloadrails-677d92299b36a0eeaf8ec6aec211f5e6e325fe0d.tar.gz
rails-677d92299b36a0eeaf8ec6aec211f5e6e325fe0d.tar.bz2
rails-677d92299b36a0eeaf8ec6aec211f5e6e325fe0d.zip
Added conditional filters #431 [Marcel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 4467f352bb..f4ed8f3bac 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,17 @@
*SVN*
+* Added conditional filters #431 [Marcel]. Example:
+
+ class JournalController < ActionController::Base
+ # only require authentication if the current action is edit or delete
+ before_filter :authorize, :only_on => [ :edit, :delete ]
+
+ private
+ def authorize
+ # redirect to login unless authenticated
+ end
+ end
+
* Added authentication framework to protect actions behind a condition and redirect on failure. See ActionController::Authentication for more.
* Added Base#render_nothing as a cleaner way of doing render_text "" when you're not interested in returning anything but an empty response.