Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.553 kB
module ActiveRecord
module Acts #:nodoc:
module Tagger #:nodoc:
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def acts_as_tagger(options = {})
has_many :taggings
has_many :tags, :through => :taggings, :order => "name"
extend ActiveRecord::Acts::Tagger::SingletonMethods
include ActiveRecord::Acts::Tagger::InstanceMethods
end
end
module SingletonMethods
end
module InstanceMethods
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.