diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-07-08 11:18:21 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-10-13 12:06:03 +0200 |
commit | f338e8082d60d55b837ac99d45d5b4fefa29c35b (patch) | |
tree | 75caef209abf0d5fc1253dfedfaa7c16b9e5625b /activerecord | |
parent | 4650fb7d5e06f1e5eb2f9ca179e7f9c204d831b1 (diff) | |
download | rails-f338e8082d60d55b837ac99d45d5b4fefa29c35b.tar.gz rails-f338e8082d60d55b837ac99d45d5b4fefa29c35b.tar.bz2 rails-f338e8082d60d55b837ac99d45d5b4fefa29c35b.zip |
docs, nodoc internal Active Record `DelegateCache`. [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/delegation.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation/delegation.rb b/activerecord/lib/active_record/relation/delegation.rb index d75ec72b1a..27de313d05 100644 --- a/activerecord/lib/active_record/relation/delegation.rb +++ b/activerecord/lib/active_record/relation/delegation.rb @@ -3,12 +3,12 @@ require 'active_support/concern' module ActiveRecord module Delegation # :nodoc: - module DelegateCache - def relation_delegate_class(klass) # :nodoc: + module DelegateCache # :nodoc: + def relation_delegate_class(klass) @relation_delegate_cache[klass] end - def initialize_relation_delegate_cache # :nodoc: + def initialize_relation_delegate_cache @relation_delegate_cache = cache = {} [ ActiveRecord::Relation, |