Skip to content
Browse files

improve AC::Caching::Actions documentation [ci skip]

  • Loading branch information...
1 parent 7fa261f commit 74e2436061b0f871223b27d4cbed4aa5fd940ecf Francesco Rodriguez committed Feb 28, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/action_controller/caching/actions.rb
View
5 lib/action_controller/caching/actions.rb
@@ -43,8 +43,8 @@ module Caching
# <tt>ActionCachePath.new</tt>. This is handy for actions with
# multiple possible routes that should be cached differently. If a
# block is given, it is called with the current controller instance.
- # If a object is given, it is called <tt>call</tt> method with the
- # current controller instance.
+ # If an object that responds to <tt>call</tt> is given, it'll be called
+ # with the current controller instance.
#
# And you can also use <tt>:if</tt> (or <tt>:unless</tt>) to pass a
# proc that specifies when the action should be cached.
@@ -53,6 +53,7 @@ module Caching
# interval (in seconds) to schedule expiration of the cached item.
#
# The following example depicts some of the points made above:
+ #
# class CachePathCreator
# def initialize(name)
# @name = name

1 comment on commit 74e2436

@LTe
LTe commented on 74e2436 Mar 3, 2013

@frodsan thanks for that! I should fixed it earlier.

Please sign in to comment.
Something went wrong with that request. Please try again.