Permalink
Browse files

Changed 'proc' to 'Proc.new' in ActionController::Caching::Actions de…

…scription
  • Loading branch information...
fuzzyalej committed Jan 12, 2012
1 parent 7c29246 commit 509af8faafea44a6629d92cb7efd29614d94d549
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/caching/actions.rb
@@ -56,14 +56,14 @@ module Caching
#
# caches_page :public
#
- # caches_action :index, :if => proc do
+ # caches_action :index, :if => Proc.new do
# !request.format.json? # cache if is not a JSON request
# end
#
# caches_action :show, :cache_path => { :project => 1 },
# :expires_in => 1.hour
#
- # caches_action :feed, :cache_path => proc do
+ # caches_action :feed, :cache_path => Proc.new do
# if params[:user_id]
# user_list_url(params[:user_id, params[:id])
# else

0 comments on commit 509af8f

Please sign in to comment.