Skip to content
This repository
Browse code

add namespacing when referring to ActionController::RedirectBackError

  • Loading branch information...
commit a7641054d80a285c5da85d80b8678d899c27cd1a 1 parent 80bcfb0
Nick Howard authored October 25, 2011
4  actionpack/lib/action_controller/metal/redirecting.rb
@@ -54,8 +54,8 @@ module Redirecting
54 54
     #   redirect_to post_url(@post), :status => 301, :flash => { :updated_post_id => @post.id }
55 55
     #   redirect_to { :action=>'atom' }, :alert => "Something serious happened"
56 56
     #
57  
-    # When using <tt>redirect_to :back</tt>, if there is no referrer, RedirectBackError will be raised. You may specify some fallback
58  
-    # behavior for this case by rescuing RedirectBackError.
  57
+    # When using <tt>redirect_to :back</tt>, if there is no referrer, ActionController::RedirectBackError will be raised. You may specify some fallback
  58
+    # behavior for this case by rescuing ActionController::RedirectBackError.
59 59
     def redirect_to(options = {}, response_status = {}) #:doc:
60 60
       raise ActionControllerError.new("Cannot redirect to nil!") unless options
61 61
       raise AbstractController::DoubleRenderError if response_body

0 notes on commit a764105

Please sign in to comment.
Something went wrong with that request. Please try again.