diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-05 11:34:39 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-05 11:34:39 +0000 |
commit | 0e8c3b8dd974a19855f41cb319579567449461ed (patch) | |
tree | f270237dcffab0ddc4c867fc74c2f441312de72a /activerecord/test/fixtures | |
parent | df57f53d09575f8bc6542f87a3384240b66f9b4b (diff) | |
download | rails-0e8c3b8dd974a19855f41cb319579567449461ed.tar.gz rails-0e8c3b8dd974a19855f41cb319579567449461ed.tar.bz2 rails-0e8c3b8dd974a19855f41cb319579567449461ed.zip |
Fix has_many :through << with custom foreign keys. Closes #6466, #7153.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/vertex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/vertex.rb b/activerecord/test/fixtures/vertex.rb index f4c11144de..48bb851e62 100644 --- a/activerecord/test/fixtures/vertex.rb +++ b/activerecord/test/fixtures/vertex.rb @@ -1,7 +1,7 @@ # This class models a vertex in a directed graph. class Vertex < ActiveRecord::Base has_many :sink_edges, :class_name => 'Edge', :foreign_key => 'source_id' - has_many :sinks, :through => :sink_edges, :source => :sink + has_many :sinks, :through => :sink_edges has_and_belongs_to_many :sources, :class_name => 'Vertex', :join_table => 'edges', |