ActsAsTaggableOn::Taggable

Public Instance Methods

acts_as_ordered_taggable() click to toggle source

This is an alias for calling acts_as_ordered_taggable_on :tags.

Example:

class Book < ActiveRecord::Base
  acts_as_ordered_taggable
end
# File lib/acts_as_taggable_on/taggable.rb, line 25
def acts_as_ordered_taggable
  acts_as_ordered_taggable_on :tags
end
acts_as_ordered_taggable_on(*tag_types) click to toggle source

Make a model taggable on specified contexts and preserves the order in which tags are created

@param [Array] tag_types An array of taggable contexts

Example:

class User < ActiveRecord::Base
  acts_as_ordered_taggable_on :languages, :skills
end
# File lib/acts_as_taggable_on/taggable.rb, line 53
def acts_as_ordered_taggable_on(*tag_types)
  taggable_on(true, tag_types)
end
acts_as_taggable() click to toggle source

This is an alias for calling acts_as_taggable_on :tags.

Example:

class Book < ActiveRecord::Base
  acts_as_taggable
end
# File lib/acts_as_taggable_on/taggable.rb, line 14
def acts_as_taggable
  acts_as_taggable_on :tags
end
acts_as_taggable_on(*tag_types) click to toggle source

Make a model taggable on specified contexts.

@param [Array] tag_types An array of taggable contexts

Example:

class User < ActiveRecord::Base
  acts_as_taggable_on :languages, :skills
end
# File lib/acts_as_taggable_on/taggable.rb, line 38
def acts_as_taggable_on(*tag_types)
  taggable_on(false, tag_types)
end
taggable?() click to toggle source
# File lib/acts_as_taggable_on/taggable.rb, line 3
def taggable?
  false
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.