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 | |
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')
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/rails_generator/generators/components/migration/templates/migration.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index a2f0fbe8a2..9a6b3a3454 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed migration generation for class names like ACLController #5197 [brad@madriska.com] + * Added show_source_list and show_call_stack to breakpoints to make it easier to get context #5476 [takiuchi@drecom.co.jp]. Examples: irb(#<TopController:0x40822a68>):002:0> show_source_list 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 |