提交 4906b324 编写于 作者: M Marcel Molina

Apply [3159] to stable. Remove superfluous check for pluralize_table_names...

Apply [3159] to stable. 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/branches/stable@3160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 541da098
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册