Permalink
Browse files

add namespacing when referring to ActionController::RedirectBackError

  • Loading branch information...
1 parent 80bcfb0 commit a7641054d80a285c5da85d80b8678d899c27cd1a @baroquebobcat baroquebobcat committed Oct 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/metal/redirecting.rb
View
4 actionpack/lib/action_controller/metal/redirecting.rb
@@ -54,8 +54,8 @@ module Redirecting
# redirect_to post_url(@post), :status => 301, :flash => { :updated_post_id => @post.id }
# redirect_to { :action=>'atom' }, :alert => "Something serious happened"
#
- # 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 :back</tt>, if there is no referrer, ActionController::RedirectBackError will be raised. You may specify some fallback
+ # behavior for this case by rescuing ActionController::RedirectBackError.
def redirect_to(options = {}, response_status = {}) #:doc:
raise ActionControllerError.new("Cannot redirect to nil!") unless options
raise AbstractController::DoubleRenderError if response_body

0 comments on commit a764105

Please sign in to comment.