mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
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
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Fixed the placement of fixture files for nested models when generating through script/generate model #7547 [jkit]
|
||||
|
||||
* Added TEMPLATE option to rake doc:app to set a custom output template #7737 [Jakob S]
|
||||
|
||||
* Added VERBOSE option to rake db:migrate to turn off output #8204 [jbarnette]
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user