Permalink
Browse files

Remove superfluous check for pluralize_table_names (use table_name wh…

…ich does this check when it's set).

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent bea737e commit 1b3c9a0a56771d894d8d32500eb8f878728bd630 @sstephenson sstephenson 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 1b3c9a0

Please sign in to comment.