Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

performance enhancement for previous patch [skaes]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit ff96498848d6a9f58707d4d9848a196643d45c26 1 parent d153525
@NZKoz NZKoz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
View
2  actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
@@ -45,7 +45,7 @@ def CGIMethods.parse_request_parameters(params)
parsed_params = {}
for key, value in params
- next if key.nil?
+ next unless key
value = [value] if key =~ /.*\[\]$/
unless key.include?('[')
# much faster to test for the most common case first (GET)
Please sign in to comment.
Something went wrong with that request. Please try again.