ActsAsTaggableOn::Taggable::Ownership::ClassMethods

Public Instance Methods

acts_as_taggable_on(*args) click to toggle source
# File lib/acts_as_taggable_on/acts_as_taggable_on/ownership.rb, line 15
def acts_as_taggable_on(*args)
  initialize_acts_as_taggable_on_ownership
  super(*args)
end
initialize_acts_as_taggable_on_ownership() click to toggle source
# File lib/acts_as_taggable_on/acts_as_taggable_on/ownership.rb, line 20
def initialize_acts_as_taggable_on_ownership      
  tag_types.map(&:to_s).each do |tag_type|
    class_eval             def #{tag_type}_from(owner)              owner_tag_list_on(owner, '#{tag_type}')            end      , __FILE__, __LINE__ + 1
  end        
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.