aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEdward Tsech <edtsech@gmail.com>2012-05-01 20:52:41 +0200
committerEdward Tsech <edtsech@gmail.com>2012-05-01 20:52:41 +0200
commitd752eabde35be96f9d8ab913b21c04e7f6aec485 (patch)
treed50203315642feac1e4248bf7600880afb4999d4 /activerecord
parent068e8b20b574395e6d38480f5f124fbd3dd5a370 (diff)
downloadrails-d752eabde35be96f9d8ab913b21c04e7f6aec485.tar.gz
rails-d752eabde35be96f9d8ab913b21c04e7f6aec485.tar.bz2
rails-d752eabde35be96f9d8ab913b21c04e7f6aec485.zip
Add few lines to describe how aggregation part caching works. [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/aggregations.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/aggregations.rb b/activerecord/lib/active_record/aggregations.rb
index bf1c73209e..25ab826a13 100644
--- a/activerecord/lib/active_record/aggregations.rb
+++ b/activerecord/lib/active_record/aggregations.rb
@@ -86,6 +86,10 @@ module ActiveRecord
# 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"