Skip to content
This repository
Browse code

Plugin generator: check for class collisions. Closes #4833.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 18e2188f5d4453e551fc0ed1e1603205e69e51bb 1 parent 284921a
Jeremy Kemper authored October 23, 2006
2  railties/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Plugin generator: check for class collisions.  #4833 [vinbarnes@gmail.com]
  4
+
3 5
 * Mailer generator: handle mailers in modules, set mime_version in unit test.  [Jeremy Kemper]
4 6
 
5 7
 * Set $KCODE to 'u' by default to enable the multibyte safe String#chars proxy. [Koz]
3  railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb
@@ -9,6 +9,9 @@ def initialize(runtime_args, runtime_options = {})
9 9
 
10 10
   def manifest
11 11
     record do |m|
  12
+      # Check for class naming collisions.
  13
+      m.class_collisions class_path, class_name
  14
+
12 15
       m.directory "#{plugin_path}/lib"
13 16
       m.directory "#{plugin_path}/tasks"
14 17
       m.directory "#{plugin_path}/test"

0 notes on commit 18e2188

Please sign in to comment.
Something went wrong with that request. Please try again.