public Method

Aggregations.clear_aggregation_cache(

There's no documentation for this item.

Source Code

# File active_record/aggregations.rb, line 7
def clear_aggregation_cache #:nodoc:
  self.class.reflect_on_all_aggregations.to_a.each do |assoc|
    instance_variable_set "@#{assoc.name}", nil
  end unless self.new_record?
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.