diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2005-07-07 19:51:20 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2005-07-07 19:51:20 +0000 |
commit | f4bfacb24fbe17c1010a46c2b2d7a15d44cf1918 (patch) | |
tree | 02115c51afe9fe9b73e995b4efd726503f813323 /actionpack/lib/action_controller | |
parent | 5727dc2f42874e32f8cac3c176a085de07b24dd9 (diff) | |
download | rails-f4bfacb24fbe17c1010a46c2b2d7a15d44cf1918.tar.gz rails-f4bfacb24fbe17c1010a46c2b2d7a15d44cf1918.tar.bz2 rails-f4bfacb24fbe17c1010a46c2b2d7a15d44cf1918.zip |
Enable routes to recognize uppercase controller names. Closes #1635
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1765 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 8673412401..1a50eb488d 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -210,7 +210,7 @@ module ActionController mod_name = controller_name = segment = nil while index < length - return nil unless /^[a-z][a-z\d_]*$/ =~ (segment = segments[index]) + return nil unless /^[A-Za-z][A-Za-z\d_]*$/ =~ (segment = segments[index]) index += 1 mod_name = segment.camelize |