Permalink
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...
1 parent d153525 commit ff96498848d6a9f58707d4d9848a196643d45c26 @NZKoz NZKoz committed May 16, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit ff96498

Please sign in to comment.