aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/club.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/club.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/club.rb')
-rw-r--r--activerecord/test/models/club.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/club.rb b/activerecord/test/models/club.rb
index 7d7c205041..816c5e6937 100644
--- a/activerecord/test/models/club.rb
+++ b/activerecord/test/models/club.rb
@@ -1,6 +1,6 @@
class Club < ActiveRecord::Base
has_one :membership
- has_many :memberships, :automatic_inverse_of => false
+ has_many :memberships, :inverse_of => false
has_many :members, :through => :memberships
has_many :current_memberships
has_one :sponsor