diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-11-29 18:58:41 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-11-29 20:13:37 +0000 |
commit | 1a474cc8e41522ae079871d297c0e61ee4f6ef35 (patch) | |
tree | 23d2b2c2c74dc02f68ad6015bf35ce554096cdde /activerecord/test/models/owner.rb | |
parent | 4aad289428bf46cf4a13f159819f1993f8fc978f (diff) | |
download | rails-1a474cc8e41522ae079871d297c0e61ee4f6ef35.tar.gz rails-1a474cc8e41522ae079871d297c0e61ee4f6ef35.tar.bz2 rails-1a474cc8e41522ae079871d297c0e61ee4f6ef35.zip |
Deprecate set_primary_key in favour of self.primary_key=
Diffstat (limited to 'activerecord/test/models/owner.rb')
-rw-r--r-- | activerecord/test/models/owner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/owner.rb b/activerecord/test/models/owner.rb index 5760b991ec..fea55f4535 100644 --- a/activerecord/test/models/owner.rb +++ b/activerecord/test/models/owner.rb @@ -1,5 +1,5 @@ class Owner < ActiveRecord::Base - set_primary_key :owner_id + self.primary_key = :owner_id has_many :pets has_many :toys, :through => :pets end |