diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 22:10:49 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 22:10:49 +0000 |
commit | 1d4002d462a89ee08e3523f1f08d40b7192d4352 (patch) | |
tree | 1dfb2abf3a21debd7f26a6a14465c8104441bcc3 /railties/lib/rails_generator | |
parent | 757379128442d07ebebd7a3d22853d016cfb95b4 (diff) | |
download | rails-1d4002d462a89ee08e3523f1f08d40b7192d4352.tar.gz rails-1d4002d462a89ee08e3523f1f08d40b7192d4352.tar.bz2 rails-1d4002d462a89ee08e3523f1f08d40b7192d4352.zip |
Fixed the placement of fixture files for nested models when generating through script/generate model (closes #7547) [jkit]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/model_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/model_generator.rb b/railties/lib/rails_generator/generators/components/model/model_generator.rb index 9f4b15d392..2696a31656 100644 --- a/railties/lib/rails_generator/generators/components/model/model_generator.rb +++ b/railties/lib/rails_generator/generators/components/model/model_generator.rb @@ -14,7 +14,7 @@ class ModelGenerator < Rails::Generator::NamedBase # Model class, unit test, and fixtures. m.template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb") m.template 'unit_test.rb', File.join('test/unit', class_path, "#{file_name}_test.rb") - m.template 'fixtures.yml', File.join('test/fixtures', class_path, "#{table_name}.yml") + m.template 'fixtures.yml', File.join('test/fixtures', "#{table_name}.yml") unless options[:skip_migration] m.migration_template 'migration.rb', 'db/migrate', :assigns => { |