mirror of
https://github.com/github/rails.git
synced 2026-01-23 13:28:04 -05:00
Fix module support for controller generators #668 [Ulysses]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user