From ff96498848d6a9f58707d4d9848a196643d45c26 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 16 May 2006 21:09:41 +0000 Subject: performance enhancement for previous patch [skaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index 37eb8d5cd7..187516d576 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -45,7 +45,7 @@ class CGIMethods #:nodoc: 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) -- cgit v1.2.3