aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/post.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-12-02 06:03:43 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-12-02 06:03:43 +0000
commit57b7532b910f9258cad4111db79349d2d63be6d4 (patch)
tree32da547566c74dba559ae04ed073d1b3d9deb10b /activerecord/test/fixtures/post.rb
parent96c29ab890edaa54840f2cb0c9760b82ef875958 (diff)
downloadrails-57b7532b910f9258cad4111db79349d2d63be6d4.tar.gz
rails-57b7532b910f9258cad4111db79349d2d63be6d4.tar.bz2
rails-57b7532b910f9258cad4111db79349d2d63be6d4.zip
Work-in progress for providing better join model support and polymorphic associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/post.rb')
-rw-r--r--activerecord/test/fixtures/post.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/post.rb b/activerecord/test/fixtures/post.rb
index bf44d8a0a5..61249c43e0 100644
--- a/activerecord/test/fixtures/post.rb
+++ b/activerecord/test/fixtures/post.rb
@@ -19,7 +19,9 @@ class Post < ActiveRecord::Base
has_and_belongs_to_many :categories
has_and_belongs_to_many :special_categories, :join_table => "categories_posts"
-
+
+ has_many :taggings, :as => :taggable
+
def self.what_are_you
'a post...'
end