From 9ab83b1cd1323e0ffebbd287c38aff614c18822c Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 13 Oct 2008 21:43:58 -0500 Subject: Don't include the path when checking class collisions [#545 state:resolved] --- railties/lib/rails_generator/commands.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties/lib/rails_generator/commands.rb') diff --git a/railties/lib/rails_generator/commands.rb b/railties/lib/rails_generator/commands.rb index 59af7308fe..6b9a636847 100644 --- a/railties/lib/rails_generator/commands.rb +++ b/railties/lib/rails_generator/commands.rb @@ -169,6 +169,7 @@ HELP # Ruby or Rails. In the future, expand to check other namespaces # such as the rest of the user's app. def class_collisions(*class_names) + path = class_names.shift class_names.flatten.each do |class_name| # Convert to string to allow symbol arguments. class_name = class_name.to_s -- cgit v1.2.3