5292899c9a
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
7 lines
215 B
Ruby
7 lines
215 B
Ruby
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 |