From 83efffbcf6dd7e47d54a67c3013e1caaa4b0ad71 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 19 Feb 2005 16:41:39 +0000 Subject: Fix module support for controller generators #668 [Ulysses] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/rails_generator/commands.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') 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 -- cgit v1.2.3