diff options
author | Bodaniel Jeanes <me@bjeanes.com> | 2010-09-26 22:17:18 +1000 |
---|---|---|
committer | Bodaniel Jeanes <me@bjeanes.com> | 2010-09-26 22:25:25 +1000 |
commit | b689834bcf2730353d066277f43047f10abb8d30 (patch) | |
tree | 034aff3a33977cdb529ee70b0a45297b119582ca /activerecord/test/models/book.rb | |
parent | 14d2feeeab44d0161b3014c9e19f4e336c09c78e (diff) | |
download | rails-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.rb | 2 |
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 |