blob: a581b381e8cebd6242f5087c211145bf5aeb5a48 (
plain) (
tree)
|
|
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
|