diff options
author | Jon Leighton <j@jonathanleighton.com> | 2013-06-09 01:58:42 -0700 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2013-06-09 01:58:42 -0700 |
commit | ae6e6d953084d1966e52cc06ffe24131f0115cc1 (patch) | |
tree | 67f5b924096f4733980bab74c43ab92e437bca36 /activerecord/test/models/man.rb | |
parent | 8b82387c97e60faff77c3db30e53abf2f94450d0 (diff) | |
parent | d6b03a376787ec9c9e934e5688a38c576f2e39b7 (diff) | |
download | rails-ae6e6d953084d1966e52cc06ffe24131f0115cc1.tar.gz rails-ae6e6d953084d1966e52cc06ffe24131f0115cc1.tar.bz2 rails-ae6e6d953084d1966e52cc06ffe24131f0115cc1.zip |
Merge pull request #10886 from wangjohn/chnges_for_automatic_inverse_associations
Documentation and cleanup of automatic discovery of inverse associations
Diffstat (limited to 'activerecord/test/models/man.rb')
-rw-r--r-- | activerecord/test/models/man.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/man.rb b/activerecord/test/models/man.rb index 49f002aa9a..4bff92dc98 100644 --- a/activerecord/test/models/man.rb +++ b/activerecord/test/models/man.rb @@ -1,7 +1,7 @@ class Man < ActiveRecord::Base has_one :face, :inverse_of => :man has_one :polymorphic_face, :class_name => 'Face', :as => :polymorphic_man, :inverse_of => :polymorphic_man - has_many :interests, :inverse_of => :man, :automatic_inverse_of => false + has_many :interests, :inverse_of => :man has_many :polymorphic_interests, :class_name => 'Interest', :as => :polymorphic_man, :inverse_of => :polymorphic_man # These are "broken" inverse_of associations for the purposes of testing has_one :dirty_face, :class_name => 'Face', :inverse_of => :dirty_man |