Make a model a tagger. This allows an instance of a model to claim ownership of tags.
Example:
class User < ActiveRecord::Base acts_as_tagger end
# File lib/acts_as_taggable_on/tagger.rb, line 16 def acts_as_tagger(opts={}) class_eval do has_many :owned_taggings, opts.merge(:as => :tagger, :dependent => :destroy, :include => :tag, :class_name => "ActsAsTaggableOn::Tagging") has_many :owned_tags, :through => :owned_taggings, :source => :tag, :uniq => true, :class_name => "ActsAsTaggableOn::Tag" end include ActsAsTaggableOn::Tagger::InstanceMethods extend ActsAsTaggableOn::Tagger::SingletonMethods end
# File lib/acts_as_taggable_on/tagger.rb, line 27 def is_tagger? false end