From 18e2188f5d4453e551fc0ed1e1603205e69e51bb Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 23 Oct 2006 19:22:01 +0000 Subject: Plugin generator: check for class collisions. Closes #4833. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../rails_generator/generators/components/plugin/plugin_generator.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'railties/lib/rails_generator') diff --git a/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb b/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb index 8a55952ffe..915176ce18 100644 --- a/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb +++ b/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb @@ -9,6 +9,9 @@ class PluginGenerator < Rails::Generator::NamedBase def manifest record do |m| + # Check for class naming collisions. + m.class_collisions class_path, class_name + m.directory "#{plugin_path}/lib" m.directory "#{plugin_path}/tasks" m.directory "#{plugin_path}/test" -- cgit v1.2.3