diff options
author | Jakub Kuźma <qoobaa@gmail.com> | 2011-11-26 19:57:51 +0100 |
---|---|---|
committer | Jakub Kuźma <qoobaa@gmail.com> | 2011-11-26 19:57:51 +0100 |
commit | 4e5eaae1faebe5e889a50a3c3cfade397f39863c (patch) | |
tree | 828d6fac16efcae4ba5d4ad44a529f64fea827a1 /railties/lib | |
parent | 89d6db05d74ba8cb1d99aaa2166f02dd67a34a36 (diff) | |
download | rails-4e5eaae1faebe5e889a50a3c3cfade397f39863c.tar.gz rails-4e5eaae1faebe5e889a50a3c3cfade397f39863c.tar.bz2 rails-4e5eaae1faebe5e889a50a3c3cfade397f39863c.zip |
added tests, replaced classify with constantize - using classify here cuts the last 's' in ORM name
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/resource_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/resource_helpers.rb b/railties/lib/rails/generators/resource_helpers.rb index f2195cb81a..3c5b39fa16 100644 --- a/railties/lib/rails/generators/resource_helpers.rb +++ b/railties/lib/rails/generators/resource_helpers.rb @@ -64,7 +64,7 @@ module Rails end begin - "#{options[:orm].to_s.classify}::Generators::ActiveModel".constantize + "#{options[:orm].to_s.camelize}::Generators::ActiveModel".constantize rescue NameError Rails::Generators::ActiveModel end |