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
This commit is contained in:
Sam Stephenson 2005-11-22 08:59:52 +00:00
parent bea737eb5a
commit 1b3c9a0a56

@ -12,7 +12,7 @@ def manifest
# 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