diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-04 23:51:00 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-04 23:51:00 +0530 |
commit | 087f8e16a6aa889cea2262d8f5dff2578b605c68 (patch) | |
tree | 44c9b859bf0bb9f5a427d1bdb0661a683f536b0f /railties/guides/source/caching_with_rails.textile | |
parent | 9d15a35981ccce30ffbf363de1a56944c8da4e52 (diff) | |
download | rails-087f8e16a6aa889cea2262d8f5dff2578b605c68.tar.gz rails-087f8e16a6aa889cea2262d8f5dff2578b605c68.tar.bz2 rails-087f8e16a6aa889cea2262d8f5dff2578b605c68.zip |
s/ActiveRecord/Active Record according to api guidelines
Diffstat (limited to 'railties/guides/source/caching_with_rails.textile')
-rw-r--r-- | railties/guides/source/caching_with_rails.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile index 91827fd493..cebf49573d 100644 --- a/railties/guides/source/caching_with_rails.textile +++ b/railties/guides/source/caching_with_rails.textile @@ -345,7 +345,7 @@ ActionController::Base.cache_store = MyCacheStore.new h4. Cache Keys -The keys used in a cache can be any object that responds to either +:cache_key+ or to +:to_param+. You can implement the +:cache_key+ method on your classes if you need to generate custom keys. ActiveRecord will generate keys based on the class name and record id. +The keys used in a cache can be any object that responds to either +:cache_key+ or to +:to_param+. You can implement the +:cache_key+ method on your classes if you need to generate custom keys. Active Record will generate keys based on the class name and record id. You can use Hashes and Arrays of values as cache keys. |