public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Don't include the path when checking class collisions [#545 state:resolved]
josh (author)
Mon Oct 13 19:43:58 -0700 2008
commit  9ab83b1cd1323e0ffebbd287c38aff614c18822c
tree    655e68ea0da4e92f8bfde02b1f14fd95ee71e6bb
parent  c51db4d7ababd6f1c341d2808a298865ee449313
...
169
170
171
 
172
173
174
...
169
170
171
172
173
174
175
0
@@ -169,6 +169,7 @@ HELP
0
         # Ruby or Rails.  In the future, expand to check other namespaces
0
         # such as the rest of the user's app.
0
         def class_collisions(*class_names)
0
+          path = class_names.shift
0
           class_names.flatten.each do |class_name|
0
             # Convert to string to allow symbol arguments.
0
             class_name = class_name.to_s
...
1
2
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
0
@@ -1,5 +1,8 @@
0
 require 'generators/generator_test_helper'
0
 
0
+module Admin
0
+end
0
+
0
 class RailsControllerGeneratorTest < GeneratorTestCase
0
 
0
   def test_controller_generates_controller

Comments