aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-01-24 15:23:15 +0100
committerGitHub <noreply@github.com>2017-01-24 15:23:15 +0100
commit6363fa1a6f9ef43b3e89e8cf5873617e851414d4 (patch)
treed60219d9481df1d573dc4b7982a6f0a092d0f66e
parentc6f9f8c28a720ad4ec7cf3613dddfa451d5968e2 (diff)
parent5db8d7308b0d032e827744ffba87f30a4b8b47aa (diff)
downloadrails-6363fa1a6f9ef43b3e89e8cf5873617e851414d4.tar.gz
rails-6363fa1a6f9ef43b3e89e8cf5873617e851414d4.tar.bz2
rails-6363fa1a6f9ef43b3e89e8cf5873617e851414d4.zip
Merge pull request #27791 from kenta-s/fix-sample-code-for-expand_cache_key-usage
Fix sample code for `expand_cache_key` usage [ci skip]
-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)