diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-05-16 21:09:41 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-05-16 21:09:41 +0000 |
commit | ff96498848d6a9f58707d4d9848a196643d45c26 (patch) | |
tree | 8fd330ec486e51dd393b4e734fe1ac59e7e16c0b /actionpack/lib/action_controller | |
parent | d153525c53ef6158e2f6b6ba15f10b43d2b8d21a (diff) | |
download | rails-ff96498848d6a9f58707d4d9848a196643d45c26.tar.gz rails-ff96498848d6a9f58707d4d9848a196643d45c26.tar.bz2 rails-ff96498848d6a9f58707d4d9848a196643d45c26.zip |
performance enhancement for previous patch [skaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |