aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails_generator/commands.rb2
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