diff options
author | Sam Stephenson <sam@37signals.com> | 2005-11-22 08:59:52 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2005-11-22 08:59:52 +0000 |
commit | 1b3c9a0a56771d894d8d32500eb8f878728bd630 (patch) | |
tree | ce70c9d14424f4a41865ef038b5b54b7b404feda /railties/lib/rails_generator | |
parent | bea737eb5a5f51ee7fbc2e60d870cee5936bdfb0 (diff) | |
download | rails-1b3c9a0a56771d894d8d32500eb8f878728bd630.tar.gz rails-1b3c9a0a56771d894d8d32500eb8f878728bd630.tar.bz2 rails-1b3c9a0a56771d894d8d32500eb8f878728bd630.zip |
Remove superfluous check for pluralize_table_names (use table_name which does this check when it's set).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3159 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 2dfff81e61..a978b96b1c 100644 --- a/railties/lib/rails_generator/generators/components/model/model_generator.rb +++ b/railties/lib/rails_generator/generators/components/model/model_generator.rb @@ -12,7 +12,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, "#{ActiveRecord::Base.pluralize_table_names ? plural_name : singular_name}.yml") + m.template 'fixtures.yml', File.join('test/fixtures', class_path, "#{table_name}.yml") end end end |