aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-08-22 12:33:03 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-08-22 12:33:03 +0900
commitf9dbc69c6482c5f4fde9a9b34715c4fdb0f8e21b (patch)
tree311176f081e072ef252e2200e40dbee03ab715be /actionpack
parent14ecf58b54454ccb19016c7f41e23e1a936b12eb (diff)
downloadrails-f9dbc69c6482c5f4fde9a9b34715c4fdb0f8e21b.tar.gz
rails-f9dbc69c6482c5f4fde9a9b34715c4fdb0f8e21b.tar.bz2
rails-f9dbc69c6482c5f4fde9a9b34715c4fdb0f8e21b.zip
Show the `ENV` value correctly in the doc of `combined_fragment_cache_key` [ci skip]
It seems to need an escape for the showing `ENV`. https://api.rubyonrails.org/classes/AbstractController/Caching/Fragments.html#method-i-combined_fragment_cache_key
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/abstract_controller/caching/fragments.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/caching/fragments.rb b/actionpack/lib/abstract_controller/caching/fragments.rb
index f99b0830b2..febd8a67a6 100644
--- a/actionpack/lib/abstract_controller/caching/fragments.rb
+++ b/actionpack/lib/abstract_controller/caching/fragments.rb
@@ -82,7 +82,7 @@ module AbstractController
# Given a key (as described in +expire_fragment+), returns
# a key array suitable for use in reading, writing, or expiring a
# cached fragment. All keys begin with <tt>:views</tt>,
- # followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set,
+ # followed by <tt>ENV["RAILS_CACHE_ID"]</tt> or <tt>ENV["RAILS_APP_VERSION"]</tt> if set,
# followed by any controller-wide key prefix values, ending
# with the specified +key+ value.
def combined_fragment_cache_key(key)