aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/man.rb
diff options
context:
space:
mode:
authorwangjohn <wangjohn@mit.edu>2013-06-07 20:59:27 -0700
committerwangjohn <wangjohn@mit.edu>2013-06-08 10:16:51 -0700
commitd6b03a376787ec9c9e934e5688a38c576f2e39b7 (patch)
tree33de7e28e491764e0ef27ac81ebb0322540cc12c /activerecord/test/models/man.rb
parentb7f9de27f0558d6144f982cae83f32ca85a07f7e (diff)
downloadrails-d6b03a376787ec9c9e934e5688a38c576f2e39b7.tar.gz
rails-d6b03a376787ec9c9e934e5688a38c576f2e39b7.tar.bz2
rails-d6b03a376787ec9c9e934e5688a38c576f2e39b7.zip
Getting rid of the +automatic_inverse_of: false+ option in associations in favor
of using +inverse_of: false+ option. Changing the documentation and adding a CHANGELOG entry for the automatic inverse detection feature.
Diffstat (limited to 'activerecord/test/models/man.rb')
-rw-r--r--activerecord/test/models/man.rb2
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