From fcd4c9529c071d3c77cbf57fe733869da0d3fde8 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 19 Mar 2006 07:14:48 +0000 Subject: Allow has_many :through associations to find the source association by setting a custom class (closes #4307) [jonathan@bluewire.net.nz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/post.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/fixtures/post.rb') diff --git a/activerecord/test/fixtures/post.rb b/activerecord/test/fixtures/post.rb index 23f4b5d8a5..eca9369723 100644 --- a/activerecord/test/fixtures/post.rb +++ b/activerecord/test/fixtures/post.rb @@ -22,6 +22,7 @@ class Post < ActiveRecord::Base has_many :taggings, :as => :taggable has_many :tags, :through => :taggings + has_many :funky_tags, :through => :taggings, :class_name => 'Tag' has_many :super_tags, :through => :taggings has_one :tagging, :as => :taggable -- cgit v1.2.3