instiki/vendor/rails/activerecord/test/fixtures/tag.rb

7 lines
215 B
Ruby
Raw Normal View History

2007-01-22 14:43:50 +01:00
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'
2007-01-22 14:43:50 +01:00
end