diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-19 19:15:30 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-19 19:15:30 +0000 |
commit | 71b6f76543686a9ffdc3d6f9045de195ce7d7272 (patch) | |
tree | 49b547cf85767a3190562956d5a62ca8e9917587 /activesupport/test/inflector_test.rb | |
parent | 6375569484ce08f53dec8064146c2ca0c74affcd (diff) | |
download | rails-71b6f76543686a9ffdc3d6f9045de195ce7d7272.tar.gz rails-71b6f76543686a9ffdc3d6f9045de195ce7d7272.tar.bz2 rails-71b6f76543686a9ffdc3d6f9045de195ce7d7272.zip |
Fixed the Inflector to underscore strings containing numbers, so Area51Controller becomes area51_controller #1176 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/inflector_test.rb')
-rw-r--r-- | activesupport/test/inflector_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index 7694911605..670ab83317 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -66,7 +66,8 @@ class InflectorTest < Test::Unit::TestCase CamelToUnderscore = { "Product" => "product", "SpecialGuest" => "special_guest", - "ApplicationController" => "application_controller" + "ApplicationController" => "application_controller", + "Area51Controller" => "area51_controller" } CamelWithModuleToUnderscoreWithSlash = { |