diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-10-19 17:22:42 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2010-10-19 17:22:42 +0100 |
commit | 82b889f7d37249adaa606558d4c05356b3e84d9a (patch) | |
tree | 5ef73ccfadb32c90f66890aceb72a1ea80c50d4b /activerecord/test/models/tagging.rb | |
parent | 1f7415ab3a5b433ecfb0c10d66343a894d73914a (diff) | |
download | rails-82b889f7d37249adaa606558d4c05356b3e84d9a.tar.gz rails-82b889f7d37249adaa606558d4c05356b3e84d9a.tar.bz2 rails-82b889f7d37249adaa606558d4c05356b3e84d9a.zip |
Add explicit tests for the nested through association changes in reflection.rb
Diffstat (limited to 'activerecord/test/models/tagging.rb')
-rw-r--r-- | activerecord/test/models/tagging.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/tagging.rb b/activerecord/test/models/tagging.rb index c92df88e71..c6ff8d390b 100644 --- a/activerecord/test/models/tagging.rb +++ b/activerecord/test/models/tagging.rb @@ -7,5 +7,6 @@ class Tagging < ActiveRecord::Base 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 :blue_tag, :class_name => 'Tag', :foreign_key => :tag_id, :conditions => "tags.name = 'Blue'" + belongs_to :tag_with_primary_key, :class_name => 'Tag', :foreign_key => :tag_id, :primary_key => :custom_primary_key belongs_to :taggable, :polymorphic => true, :counter_cache => true end |