Permalink
Browse files

Added information about @performed_redirect for redirect_to calls.

  • Loading branch information...
radar committed Oct 27, 2008
1 parent 8129057 commit 712e8ed2aa7b6e656d458f8e4121fb6063d4ae6e
Showing with 3 additions and 0 deletions.
  1. +3 −0 actionpack/lib/action_controller/base.rb
@@ -1038,6 +1038,9 @@ def default_url_options(options = nil)
# 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?

0 comments on commit 712e8ed

Please sign in to comment.