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/post.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/post.rb')
-rw-r--r-- | activerecord/test/models/post.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index 281586b438..7c919a55eb 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -63,6 +63,7 @@ class Post < ActiveRecord::Base has_many :misc_tags, :through => :taggings, :source => :tag, :conditions => "tags.name = 'Misc'" has_many :funky_tags, :through => :taggings, :source => :tag has_many :super_tags, :through => :taggings + has_many :tags_with_primary_key, :through => :taggings, :source => :tag_with_primary_key has_one :tagging, :as => :taggable has_many :first_taggings, :as => :taggable, :class_name => 'Tagging', :conditions => "taggings.comment = 'first'" |