diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-07 21:09:32 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-07 21:09:32 +0100 |
commit | ccc9f0b7de02158a42e5f654cf00ed8b40e79781 (patch) | |
tree | e15b6497e8c5afb6d36b052873f44b1859988c06 /railties/lib | |
parent | 8fe66f1af01a744751344b83a9952e0cd91a1692 (diff) | |
download | rails-ccc9f0b7de02158a42e5f654cf00ed8b40e79781.tar.gz rails-ccc9f0b7de02158a42e5f654cf00ed8b40e79781.tar.bz2 rails-ccc9f0b7de02158a42e5f654cf00ed8b40e79781.zip |
Ensure application names are not singularized.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 2f85a0504e..ba3eb67fe0 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -194,7 +194,7 @@ module Rails::Generators end def app_const_base - @app_const_base ||= app_name.gsub(/\W/, '_').squeeze('_').classify + @app_const_base ||= app_name.gsub(/\W/, '_').squeeze('_').camelize end def app_const |