diff options
Diffstat (limited to 'activerecord/test/fixtures/tag.rb')
-rw-r--r-- | activerecord/test/fixtures/tag.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/tag.rb b/activerecord/test/fixtures/tag.rb index c12ec0c188..a581b381e8 100644 --- a/activerecord/test/fixtures/tag.rb +++ b/activerecord/test/fixtures/tag.rb @@ -2,4 +2,6 @@ class Tag < ActiveRecord::Base has_many :taggings has_many :taggables, :through => :taggings has_one :tagging + + has_many :tagged_posts, :through => :taggings, :source => :taggable, :source_type => 'Post' end
\ No newline at end of file |