module ActAsCached::ActiveRecord::HasManyThroughAssociation
Public Class Methods
included(klass)
click to toggle source
# File lib/act_as_cached/active_record/has_many_through_association.rb, line 4 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/has_many_through_association.rb, line 10 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