diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-14 14:15:53 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-15 03:53:10 -0500 |
commit | ecbde46e572192596df8cad81515f958070c8902 (patch) | |
tree | 76a14193974f188f4944382987980eb09e1f0c4c /activerecord/lib/active_record/associations | |
parent | e7e1d83ddfceeddd890ecd251bf81e18d3b553cb (diff) | |
download | rails-ecbde46e572192596df8cad81515f958070c8902.tar.gz rails-ecbde46e572192596df8cad81515f958070c8902.tar.bz2 rails-ecbde46e572192596df8cad81515f958070c8902.zip |
Fixing has_many association when ActiveRecord::Base.pluralize_table_names is false. fixes #557
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/alias_tracker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/alias_tracker.rb b/activerecord/lib/active_record/associations/alias_tracker.rb index 634dee2289..44e2ee141e 100644 --- a/activerecord/lib/active_record/associations/alias_tracker.rb +++ b/activerecord/lib/active_record/associations/alias_tracker.rb @@ -50,7 +50,7 @@ module ActiveRecord end def pluralize(table_name) - ActiveRecord::Base.pluralize_table_names ? table_name.to_s.pluralize : table_name + ActiveRecord::Base.pluralize_table_names ? table_name.to_s.pluralize : table_name.to_s end private |