Skip to content

Commit 74e2436

Browse files
author
Francesco Rodriguez
committed
improve AC::Caching::Actions documentation [ci skip]
1 parent 7fa261f commit 74e2436

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/action_controller/caching/actions.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ module Caching
4343
# <tt>ActionCachePath.new</tt>. This is handy for actions with
4444
# multiple possible routes that should be cached differently. If a
4545
# block is given, it is called with the current controller instance.
46-
# If a object is given, it is called <tt>call</tt> method with the
47-
# current controller instance.
46+
# If an object that responds to <tt>call</tt> is given, it'll be called
47+
# with the current controller instance.
4848
#
4949
# And you can also use <tt>:if</tt> (or <tt>:unless</tt>) to pass a
5050
# proc that specifies when the action should be cached.
@@ -53,6 +53,7 @@ module Caching
5353
# interval (in seconds) to schedule expiration of the cached item.
5454
#
5555
# The following example depicts some of the points made above:
56+
#
5657
# class CachePathCreator
5758
# def initialize(name)
5859
# @name = name

0 commit comments

Comments
 (0)