Skip to content

Commit

Permalink
Missed svn adds for [8042]. References rails#6466.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@8044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Oct 27, 2007
1 parent 1117d73 commit cf3e966
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions activerecord/test/fixtures/book.rb
@@ -0,0 +1,4 @@
class Book < ActiveRecord::Base
has_many :citations, :foreign_key => 'book1_id'
has_many :references, :through => :citations, :source => :reference_of, :uniq => true
end
7 changes: 7 additions & 0 deletions activerecord/test/fixtures/books.yml
@@ -0,0 +1,7 @@
awdr:
id: 1
name: "Agile Web Development with Rails"

rfr:
id: 2
name: "Ruby for Rails"
6 changes: 6 additions & 0 deletions activerecord/test/fixtures/citation.rb
@@ -0,0 +1,6 @@
class Citation < ActiveRecord::Base
belongs_to :reference_of, :class_name => "Book", :foreign_key => :book2_id

belongs_to :book1, :class_name => "Book", :foreign_key => :book1_id
belongs_to :book2, :class_name => "Book", :foreign_key => :book2_id
end

0 comments on commit cf3e966

Please sign in to comment.