Module: ActiveRecord::Aggregations

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
activerecord/lib/active_record/aggregations.rb

Overview

See ActiveRecord::Aggregations::ClassMethods for documentation

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included

Instance Method Details

#initialize_dupObject

:nodoc:


6
7
8
9
# File 'activerecord/lib/active_record/aggregations.rb', line 6

def initialize_dup(*) # :nodoc:
  @aggregation_cache = {}
  super
end

#reloadObject

:nodoc:


11
12
13
14
# File 'activerecord/lib/active_record/aggregations.rb', line 11

def reload(*) # :nodoc:
  clear_aggregation_cache
  super
end