Module: ActiveRecord::Aggregations

Defined in:
activerecord/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:



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

def initialize_dup(*) # :nodoc:
  @aggregation_cache = @aggregation_cache.dup
  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