diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-29 12:13:58 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-29 12:42:51 -0300 |
commit | 8823b85010a217df555b981a453384e24ce7da47 (patch) | |
tree | e7abe331d113354b0a2184de8acddaddb14c021a | |
parent | 152580ee00205b42de45950d69349c6eab6dd291 (diff) | |
download | rails-8823b85010a217df555b981a453384e24ce7da47.tar.gz rails-8823b85010a217df555b981a453384e24ce7da47.tar.bz2 rails-8823b85010a217df555b981a453384e24ce7da47.zip |
Remove redundant conditional.
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/response.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb index 10b122557a..e381b9abdf 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/response.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb @@ -84,11 +84,7 @@ module ActionDispatch when %r{^\w[\w\d+.-]*:.*} fragment when String - if fragment =~ %r{^\w[\w\d+.-]*:.*} - fragment - else - @request.protocol + @request.host_with_port + fragment - end + @request.protocol + @request.host_with_port + fragment when :back raise RedirectBackError unless refer = @request.headers["Referer"] refer |