Class: ActiveRecord::Associations::Preloader::Association

Inherits:
Object
  • Object
show all
Defined in:
lib/rcache/association.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#build_scopeObject



7
8
9
10
11
# File 'lib/rcache/association.rb', line 7

def build_scope
  scope = old_build_scope
  scope = scope.rcache(preload_options[:rcache_value]) if preload_options[:rcache_value]
  scope
end

#old_build_scopeObject



5
# File 'lib/rcache/association.rb', line 5

alias :old_build_scope :build_scope