aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/book.rb
diff options
context:
space:
mode:
authorBodaniel Jeanes <me@bjeanes.com>2010-09-26 22:17:18 +1000
committerBodaniel Jeanes <me@bjeanes.com>2010-09-26 22:25:25 +1000
commitb689834bcf2730353d066277f43047f10abb8d30 (patch)
tree034aff3a33977cdb529ee70b0a45297b119582ca /activerecord/test/models/book.rb
parent14d2feeeab44d0161b3014c9e19f4e336c09c78e (diff)
downloadrails-b689834bcf2730353d066277f43047f10abb8d30.tar.gz
rails-b689834bcf2730353d066277f43047f10abb8d30.tar.bz2
rails-b689834bcf2730353d066277f43047f10abb8d30.zip
Initial nested_has_many_through support [#1152]
Diffstat (limited to 'activerecord/test/models/book.rb')
-rw-r--r--activerecord/test/models/book.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb
index 1e030b4f59..d27d0af77c 100644
--- a/activerecord/test/models/book.rb
+++ b/activerecord/test/models/book.rb
@@ -1,4 +1,6 @@
class Book < ActiveRecord::Base
+ has_many :authors
+
has_many :citations, :foreign_key => 'book1_id'
has_many :references, :through => :citations, :source => :reference_of, :uniq => true