aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/person.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@envy8.local>2008-04-27 17:16:05 -0500
committerDavid Heinemeier Hansson <david@envy8.local>2008-04-27 17:16:05 -0500
commit027f0f822f418aba41f1d52f9d5895e34fae0310 (patch)
tree91b50adfff2f836ccb49e3fdfda082f31cceaf94 /activerecord/test/models/person.rb
parent162c7c1908946cfb48c201cfc5a4976a33c8bff1 (diff)
parent7f4171da5e3ed5b3e038b95f8f5ae05ba6e21bef (diff)
downloadrails-027f0f822f418aba41f1d52f9d5895e34fae0310.tar.gz
rails-027f0f822f418aba41f1d52f9d5895e34fae0310.tar.bz2
rails-027f0f822f418aba41f1d52f9d5895e34fae0310.zip
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'activerecord/test/models/person.rb')
-rw-r--r--activerecord/test/models/person.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb
index 366f9fb708..4f4d695b24 100644
--- a/activerecord/test/models/person.rb
+++ b/activerecord/test/models/person.rb
@@ -2,4 +2,9 @@ class Person < ActiveRecord::Base
has_many :readers
has_many :posts, :through => :readers
has_many :posts_with_no_comments, :through => :readers, :source => :post, :include => :comments, :conditions => 'comments.id is null'
+
+ has_many :references
+ has_many :jobs, :through => :references
+ has_one :favourite_reference, :class_name => 'Reference', :conditions => ['favourite=?', true]
+
end