aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache.rb
diff options
context:
space:
mode:
authorkenta-s <knt01222@gmail.com>2017-01-24 20:27:07 +0900
committerkenta-s <knt01222@gmail.com>2017-01-24 20:28:20 +0900
commit5db8d7308b0d032e827744ffba87f30a4b8b47aa (patch)
treed60219d9481df1d573dc4b7982a6f0a092d0f66e /activesupport/lib/active_support/cache.rb
parentc6f9f8c28a720ad4ec7cf3613dddfa451d5968e2 (diff)
downloadrails-5db8d7308b0d032e827744ffba87f30a4b8b47aa.tar.gz
rails-5db8d7308b0d032e827744ffba87f30a4b8b47aa.tar.bz2
rails-5db8d7308b0d032e827744ffba87f30a4b8b47aa.zip
Fix sample code for `expand_cache_key` usage [ci skip]
Diffstat (limited to 'activesupport/lib/active_support/cache.rb')
-rw-r--r--activesupport/lib/active_support/cache.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index d1bbd2f405..4ff47c261d 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -71,8 +71,8 @@ module ActiveSupport
# each of elements in the array will be turned into parameters/keys and
# concatenated into a single key. For example:
#
- # expand_cache_key([:foo, :bar]) # => "foo/bar"
- # expand_cache_key([:foo, :bar], "namespace") # => "namespace/foo/bar"
+ # ActiveSupport::Cache.expand_cache_key([:foo, :bar]) # => "foo/bar"
+ # ActiveSupport::Cache.expand_cache_key([:foo, :bar], "namespace") # => "namespace/foo/bar"
#
# The +key+ argument can also respond to +cache_key+ or +to_param+.
def expand_cache_key(key, namespace = nil)