aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-10 01:27:39 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-10 01:27:39 +0000
commit576b1627254ff0d40063312d7df876706a87eba6 (patch)
tree6b03c5cd43a2e1214154b4c25d7f7961b6c6b0c5 /actionpack/CHANGELOG
parente96c08b1aaf1a03a22ec745914d975b6badf0e69 (diff)
downloadrails-576b1627254ff0d40063312d7df876706a87eba6.tar.gz
rails-576b1627254ff0d40063312d7df876706a87eba6.tar.bz2
rails-576b1627254ff0d40063312d7df876706a87eba6.zip
Added that all renders and redirects now return false, so they can be used as the last line in before_filters to stop execution.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG15
1 files changed, 15 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 911ffd4340..d43ada01f0 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,20 @@
*SVN*
+* Added that all renders and redirects now return false, so they can be used as the last line in before_filters to stop execution.
+
+ Before:
+ def authenticate
+ unless @session[:authenticated]
+ redirect_to :controller => "account", :action => "login"
+ return false
+ end
+ end
+
+ After:
+ def authenticate
+ redirect_to(:controller => "account", :action => "login") unless @session[:authenticated]
+ end
+
* Added conditional filters #431 [Marcel]. Example:
class JournalController < ActionController::Base