diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-07-05 04:40:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-07-05 04:40:48 +0000 |
commit | 7e5dd2e1245b55a8630ddd70a729f5a7b89d18e0 (patch) | |
tree | 8fe313f4ad033742edec1bf27df0a7cdc6af1801 /railties/lib/rails_generator/generators/components/migration | |
parent | 784165e03b8d297916edd23060a0f6b5c79b7ba1 (diff) | |
download | rails-7e5dd2e1245b55a8630ddd70a729f5a7b89d18e0.tar.gz rails-7e5dd2e1245b55a8630ddd70a729f5a7b89d18e0.tar.bz2 rails-7e5dd2e1245b55a8630ddd70a729f5a7b89d18e0.zip |
Fixed migration generation for class names like ACLController (closes #5197) [brad@madriska.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/migration')
-rw-r--r-- | railties/lib/rails_generator/generators/components/migration/templates/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/migration/templates/migration.rb b/railties/lib/rails_generator/generators/components/migration/templates/migration.rb index 9d0e53062f..2600610fc6 100644 --- a/railties/lib/rails_generator/generators/components/migration/templates/migration.rb +++ b/railties/lib/rails_generator/generators/components/migration/templates/migration.rb @@ -1,4 +1,4 @@ -class <%= class_name %> < ActiveRecord::Migration +class <%= class_name.underscore.camelize %> < ActiveRecord::Migration def self.up end |