diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2008-10-27 14:59:10 +1030 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2008-10-27 14:59:10 +1030 |
commit | 712e8ed2aa7b6e656d458f8e4121fb6063d4ae6e (patch) | |
tree | eee75393375dfe6eecaed6c1ac6265821d64e8f7 | |
parent | 8129057d9b94af726ccfe19c3c95ca5069989601 (diff) | |
download | rails-712e8ed2aa7b6e656d458f8e4121fb6063d4ae6e.tar.gz rails-712e8ed2aa7b6e656d458f8e4121fb6063d4ae6e.tar.bz2 rails-712e8ed2aa7b6e656d458f8e4121fb6063d4ae6e.zip |
Added information about @performed_redirect for redirect_to calls.
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 2cff05dfa4..006a3039af 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1038,6 +1038,9 @@ module ActionController #:nodoc: # When using <tt>redirect_to :back</tt>, if there is no referrer, # RedirectBackError will be raised. You may specify some fallback # behavior for this case by rescuing RedirectBackError. + # + # When using <tt>redirect_to</tt> an instance variable called + # @performed_redirect will be set to true. def redirect_to(options = {}, response_status = {}) #:doc: raise ActionControllerError.new("Cannot redirect to nil!") if options.nil? |