diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-08-21 17:22:42 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-08-21 17:23:08 -0300 |
commit | d5fe242d2a8aad4868a905da97da3a242fa265a4 (patch) | |
tree | d894821c82ef2a1367ff97836c171a05ca8f8901 /activerecord/test | |
parent | 015cac755390b344092ab81c512941a95c02cb5e (diff) | |
download | rails-d5fe242d2a8aad4868a905da97da3a242fa265a4.tar.gz rails-d5fe242d2a8aad4868a905da97da3a242fa265a4.tar.bz2 rails-d5fe242d2a8aad4868a905da97da3a242fa265a4.zip |
Use Ruby 1.8 hash syntax
Introduced in backport 648c5a1369ed64608c3ca43a5ebc917687d20010.
Diffstat (limited to 'activerecord/test')
-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 |