Permalink
Browse files

Add few lines to describe how aggregation part caching works. [ci skip]

  • Loading branch information...
1 parent 068e8b2 commit d752eabde35be96f9d8ab913b21c04e7f6aec485 @edtsech edtsech committed May 1, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/lib/active_record/aggregations.rb
View
4 activerecord/lib/active_record/aggregations.rb
@@ -86,6 +86,10 @@ def clear_aggregation_cache #:nodoc:
# customer.address_street = "Hyancintvej"
# customer.address_city = "Copenhagen"
# customer.address # => Address.new("Hyancintvej", "Copenhagen")
+ # customer.address_street = "Vesterbrogade"
+ # customer.address # => Address.new("Hyancintvej", "Copenhagen")
+ # customer.clear_aggregation_cache
+ # customer.address # => Address.new("Vesterbrogade", "Copenhagen")
# customer.address = Address.new("May Street", "Chicago")
# customer.address_street # => "May Street"
# customer.address_city # => "Chicago"

0 comments on commit d752eab

Please sign in to comment.