Module: ActiveRecord::Aggregations

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

Overview

See ActiveRecord::Aggregations::ClassMethods for documentation

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#initialize_dupObject

:nodoc:



8
9
10
11
# File 'lib/active_record/aggregations.rb', line 8

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

#reloadObject

:nodoc:



13
14
15
16
# File 'lib/active_record/aggregations.rb', line 13

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