aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorप्रथमेश Sonpatki <csonpatki@gmail.com>2016-09-17 12:14:35 +0530
committerGitHub <noreply@github.com>2016-09-17 12:14:35 +0530
commit2c5cb411b5755f3cfac7413b1c18e7d65acc208d (patch)
treebeec875b5274a63279c1e0e4e21bd22a2a93a378
parent4a727ea0a558b3df891d4deb032f76637d1c7877 (diff)
parent5de91258bea9931c9c13d9d7a713cc686001bd94 (diff)
downloadrails-2c5cb411b5755f3cfac7413b1c18e7d65acc208d.tar.gz
rails-2c5cb411b5755f3cfac7413b1c18e7d65acc208d.tar.bz2
rails-2c5cb411b5755f3cfac7413b1c18e7d65acc208d.zip
Merge pull request #26528 from y-yagi/fix_formatting_of_fetch
fix formatting of `Cache::Store#fetch` [ci skip]
-rw-r--r--activesupport/lib/active_support/cache.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index 8ef91fa3f0..e71f2673ab 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -200,15 +200,15 @@ module ActiveSupport
# You may also specify additional options via the +options+ argument.
# Setting <tt>force: true</tt> forces a cache "miss," meaning we treat
# the cache value as missing even if it's present. Passing a block is
- # required when `force` is true so this always results in a cache write.
+ # required when +force+ is true so this always results in a cache write.
#
# cache.write('today', 'Monday')
# cache.fetch('today', force: true) { 'Tuesday' } # => 'Tuesday'
# cache.fetch('today', force: true) # => ArgumentError
#
- # The `:force` option is useful when you're calling some other method to
+ # The +:force+ option is useful when you're calling some other method to
# ask whether you should force a cache write. Otherwise, it's clearer to
- # just call `Cache#write`.
+ # just call <tt>Cache#write</tt>.
#
# Setting <tt>:compress</tt> will store a large cache entry set by the call
# in a compressed format.