We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d08141 commit ad4d2d2Copy full SHA for ad4d2d2
actionpack/test/controller/redirect_test.rb
@@ -204,11 +204,9 @@ def redirect_with_null_bytes
204
end
205
206
def redirect_to_external_with_rescue
207
- begin
208
- redirect_to "http://www.rubyonrails.org/", allow_other_host: false
209
- rescue ActionController::Redirecting::UnsafeRedirectError
210
- render plain: "caught error"
211
- end
+ redirect_to "http://www.rubyonrails.org/", allow_other_host: false
+ rescue ActionController::Redirecting::UnsafeRedirectError
+ render plain: "caught error"
212
213
214
def rescue_errors(e) raise e end
0 commit comments