module ActAsCached::ActiveRecord::CollectionAssociation

Public Class Methods

included(klass) click to toggle source
# File lib/act_as_cached/active_record/collection_association.rb, line 5
def self.included(klass)
  klass.class_eval do
    alias_method_chain :find_target,:act_as_cache
  end
end

Public Instance Methods

find_target_with_act_as_cache() click to toggle source
# File lib/act_as_cached/active_record/collection_association.rb, line 11
def find_target_with_act_as_cache
  enabled_cache? ?
  fetch_cache(cache_path) { find_target_without_act_as_cache } :
  find_target_without_act_as_cache
end