diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-04-30 23:31:20 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-04-30 23:46:34 -0500 |
commit | 1fcc7dbcc8dcf7f1d42ca8486ad313f0c805033a (patch) | |
tree | 4ff5acd5af83ae7b771f863505fd52a838a46a27 /actionpack/lib/action_dispatch/http | |
parent | dc9f53b05b650614520086ae780ca5e58efe65b1 (diff) | |
download | rails-1fcc7dbcc8dcf7f1d42ca8486ad313f0c805033a.tar.gz rails-1fcc7dbcc8dcf7f1d42ca8486ad313f0c805033a.tar.bz2 rails-1fcc7dbcc8dcf7f1d42ca8486ad313f0c805033a.zip |
Move TestRequest#query_parameters into AD TestRequest
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rwxr-xr-x | actionpack/lib/action_dispatch/http/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index c28f59dbd6..e4f3a8f125 100755 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -351,7 +351,7 @@ EOM # Returns the query string, accounting for server idiosyncrasies. def query_string - @env['QUERY_STRING'].present? ? @env['QUERY_STRING'] : (@env['REQUEST_URI'].split('?', 2)[1] || '') + @env['QUERY_STRING'].present? ? @env['QUERY_STRING'] : (@env['REQUEST_URI'].to_s.split('?', 2)[1] || '') end # Returns the request URI, accounting for server idiosyncrasies. |