Permalink
Browse files

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
  • Loading branch information...
1 parent 541da09 commit 4906b32450b21cb6063ed195802ad671ed9bed32 Marcel Molina committed Nov 22, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails_generator/generators/components/model/model_generator.rb
@@ -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

0 comments on commit 4906b32

Please sign in to comment.