ActsAsTaggableOn::Taggable::Cache::ClassMethods

Public Instance Methods

acts_as_taggable_on(*args) click to toggle source
# File lib/acts_as_taggable_on/acts_as_taggable_on/cache.rb, line 28
def acts_as_taggable_on(*args)
  super(*args)
  initialize_acts_as_taggable_on_cache
end
caching_tag_list_on?(context) click to toggle source
# File lib/acts_as_taggable_on/acts_as_taggable_on/cache.rb, line 33
def caching_tag_list_on?(context)
  column_names.include?("cached_#{context.to_s.singularize}_list")
end
initialize_acts_as_taggable_on_cache() click to toggle source
# File lib/acts_as_taggable_on/acts_as_taggable_on/cache.rb, line 18
def initialize_acts_as_taggable_on_cache      
  tag_types.map(&:to_s).each do |tag_type|
    class_eval             def self.caching_#{tag_type.singularize}_list?              caching_tag_list_on?("#{tag_type}")            end        , __FILE__, __LINE__ + 1
  end        
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.