diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-03-18 23:14:31 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-03-18 23:14:31 +0000 |
commit | 9c9069a67595f620f80eabc475181cb36a26cdde (patch) | |
tree | a2a8aebf762be6d73ec8cab1d5f0a1c8eb84356b /activerecord/test/fixtures/tagging.rb | |
parent | a46214c4f9e7117796f2a5ed1414a83c2ca4c6bd (diff) | |
download | rails-9c9069a67595f620f80eabc475181cb36a26cdde.tar.gz rails-9c9069a67595f620f80eabc475181cb36a26cdde.tar.bz2 rails-9c9069a67595f620f80eabc475181cb36a26cdde.zip |
Fixed has_many :through to include :conditions set on the :through association. closes #4020 [jonathan@bluewire.net.nz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/tagging.rb')
-rw-r--r-- | activerecord/test/fixtures/tagging.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/tagging.rb b/activerecord/test/fixtures/tagging.rb index 4d3878933a..51c3bd3604 100644 --- a/activerecord/test/fixtures/tagging.rb +++ b/activerecord/test/fixtures/tagging.rb @@ -1,5 +1,6 @@ class Tagging < ActiveRecord::Base belongs_to :tag - belongs_to :super_tag, :class_name => 'Tag', :foreign_key => 'super_tag_id' + belongs_to :super_tag, :class_name => 'Tag', :foreign_key => 'super_tag_id' + belongs_to :invalid_tag, :class_name => 'Tag', :foreign_key => 'tag_id' belongs_to :taggable, :polymorphic => true, :counter_cache => true end
\ No newline at end of file |