blob: 80d4725f7ed7c10dfe8b76ce78a95be2ca3d985f (
plain) (
blame)
1
2
3
4
5
6
7
|
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
|