diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-05-24 11:20:20 +0200 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-05-24 11:20:20 +0200 |
commit | b75c8e58ab2ea055324c6f95127b5b940e758d57 (patch) | |
tree | fa6a485a4f6c0144728f27653365e53fdb83d903 /activerecord/test/models | |
parent | d29399061e54092fdbf57780c38e19dd1921f45d (diff) | |
download | rails-b75c8e58ab2ea055324c6f95127b5b940e758d57.tar.gz rails-b75c8e58ab2ea055324c6f95127b5b940e758d57.tar.bz2 rails-b75c8e58ab2ea055324c6f95127b5b940e758d57.zip |
Using 1.8.7 syntax for 3-2-stable
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/person.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb index 3a7a730a1a..d316a0b992 100644 --- a/activerecord/test/models/person.rb +++ b/activerecord/test/models/person.rb @@ -27,7 +27,7 @@ class Person < ActiveRecord::Base has_many :agents_posts, :through => :agents, :source => :posts has_many :agents_posts_authors, :through => :agents_posts, :source => :author - has_many :essays, primary_key: "first_name", foreign_key: "writer_id" + has_many :essays, :primary_key => "first_name", :foreign_key => "writer_id" scope :males, :conditions => { :gender => 'M' } scope :females, :conditions => { :gender => 'F' } |