aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-02-15 12:30:38 +0100
committerRobin Dupret <robin.dupret@gmail.com>2015-02-15 19:19:04 +0100
commit1747c4e2cea811cbf04fccc9f57256c80112d9ce (patch)
treee0ea6f1b8dedbe206f15b67a9b226618539fc764 /actionpack/lib
parent3960908f41ea638556493762937c440761af9a65 (diff)
downloadrails-1747c4e2cea811cbf04fccc9f57256c80112d9ce.tar.gz
rails-1747c4e2cea811cbf04fccc9f57256c80112d9ce.tar.bz2
rails-1747c4e2cea811cbf04fccc9f57256c80112d9ce.zip
Tiny documentation edits [ci skip]
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/metal/conditional_get.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/conditional_get.rb b/actionpack/lib/action_controller/metal/conditional_get.rb
index bc6d336e19..858870d8b8 100644
--- a/actionpack/lib/action_controller/metal/conditional_get.rb
+++ b/actionpack/lib/action_controller/metal/conditional_get.rb
@@ -215,16 +215,16 @@ module ActionController
response.cache_control.replace(:no_cache => true)
end
- # Cache or yield the block. The cache is suppose to never expire.
+ # Cache or yield the block. The cache is supposed to never expire.
#
# You can use this method when you have a HTTP response that never changes,
# and the browser and proxies should cache it indefinitely.
#
- # <tt>public</tt> By default, HTTP responses are private, cached only on the
+ # * +public+: By default, HTTP responses are private, cached only on the
# user's web browser. To allow proxies to cache the response, set +true+ to
# indicate that they can serve the cached response to all users.
#
- # <tt>version</tt> is the version passed as a key for the cache.
+ # * +version+: the version passed as a key for the cache.
def http_cache_forever(public: false, version: 'v1')
expires_in 100.years, public: public