diff options
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/friendship.rb | 4 | ||||
-rw-r--r-- | activerecord/test/models/person.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/models/friendship.rb b/activerecord/test/models/friendship.rb index 6b4f7acc38..d2e0ddeab0 100644 --- a/activerecord/test/models/friendship.rb +++ b/activerecord/test/models/friendship.rb @@ -1,4 +1,4 @@ class Friendship < ActiveRecord::Base - belongs_to :friend, class_name: 'Person' - belongs_to :follower, foreign_key: 'friend_id', class_name: 'Person', counter_cache: :followers_count + belongs_to :friend, :class_name => 'Person' + belongs_to :follower, :foreign_key => 'friend_id', :class_name => 'Person', :counter_cache => :followers_count end diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb index a64405b246..5b92227f4a 100644 --- a/activerecord/test/models/person.rb +++ b/activerecord/test/models/person.rb @@ -7,7 +7,7 @@ class Person < ActiveRecord::Base has_many :secure_posts, :through => :secure_readers has_many :posts_with_no_comments, :through => :readers, :source => :post, :include => :comments, :conditions => 'comments.id is null' - has_many :followers, foreign_key: 'friend_id', class_name: 'Friendship' + has_many :followers, :foreign_key => 'friend_id', :class_name => 'Friendship' has_many :references has_many :bad_references |