File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/action_controller/caching Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ module Caching
43
43
# <tt>ActionCachePath.new</tt>. This is handy for actions with
44
44
# multiple possible routes that should be cached differently. If a
45
45
# 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.
48
48
#
49
49
# And you can also use <tt>:if</tt> (or <tt>:unless</tt>) to pass a
50
50
# proc that specifies when the action should be cached.
@@ -53,6 +53,7 @@ module Caching
53
53
# interval (in seconds) to schedule expiration of the cached item.
54
54
#
55
55
# The following example depicts some of the points made above:
56
+ #
56
57
# class CachePathCreator
57
58
# def initialize(name)
58
59
# @name = name
You can’t perform that action at this time.
0 commit comments