diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-10-23 19:22:01 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-10-23 19:22:01 +0000 |
commit | 18e2188f5d4453e551fc0ed1e1603205e69e51bb (patch) | |
tree | 1a079c6605893c2d01b9e13cad3d6c1fb7b8a28d /railties/lib/rails_generator/generators/components | |
parent | 284921a200d3f6e3afcb92d7455d842907ee4bca (diff) | |
download | rails-18e2188f5d4453e551fc0ed1e1603205e69e51bb.tar.gz rails-18e2188f5d4453e551fc0ed1e1603205e69e51bb.tar.bz2 rails-18e2188f5d4453e551fc0ed1e1603205e69e51bb.zip |
Plugin generator: check for class collisions. Closes #4833.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components')
-rw-r--r-- | railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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" |