From 6abda696b5df14a9ab132c34311daaabe12030e6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 3 Dec 2005 04:29:55 +0000 Subject: Added preliminary support for join models [DHH] Added preliminary support for polymorphic associations [DHH] Refactored associations to use reflections to get DRYer, beware, major refactoring -- double check before deploying anything with this (all tests pass, but..) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/post.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/fixtures') diff --git a/activerecord/test/fixtures/post.rb b/activerecord/test/fixtures/post.rb index 61249c43e0..97b25179f5 100644 --- a/activerecord/test/fixtures/post.rb +++ b/activerecord/test/fixtures/post.rb @@ -21,6 +21,7 @@ class Post < ActiveRecord::Base has_and_belongs_to_many :special_categories, :join_table => "categories_posts" has_many :taggings, :as => :taggable + has_many :tags, :through => :taggings def self.what_are_you 'a post...' -- cgit v1.2.3