diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-19 16:41:39 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-19 16:41:39 +0000 |
commit | 83efffbcf6dd7e47d54a67c3013e1caaa4b0ad71 (patch) | |
tree | a74a9fa428752e2234a6a8962dd83f055e4b0797 /railties/lib | |
parent | c56816e10297aca544a2dbf8c25add4a48d7e368 (diff) | |
download | rails-83efffbcf6dd7e47d54a67c3013e1caaa4b0ad71.tar.gz rails-83efffbcf6dd7e47d54a67c3013e1caaa4b0ad71.tar.bz2 rails-83efffbcf6dd7e47d54a67c3013e1caaa4b0ad71.zip |
Fix module support for controller generators #668 [Ulysses]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails_generator/commands.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/commands.rb b/railties/lib/rails_generator/commands.rb index ff68afce3e..b851c6e70b 100644 --- a/railties/lib/rails_generator/commands.rb +++ b/railties/lib/rails_generator/commands.rb @@ -127,7 +127,7 @@ module Rails # If the last Module exists, check whether the given # class exists and raise a collision if so. - if last and last.const_defined?(name) + if last and last.const_defined?(name.camelize) raise_class_collision(class_name) end end |