aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching/fragments.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2011-07-08 01:12:09 +0900
committerAkira Matsuda <ronnie@dio.jp>2011-07-08 06:13:21 +0900
commita3683fd0e4980ae4926497ba7c7b7e8606f3e88e (patch)
tree0baa4591ebd5f418b9b595176bda793a274f350f /actionpack/lib/action_controller/caching/fragments.rb
parent1d3f833a5425487cae1e3073b52ebf285eff03f9 (diff)
downloadrails-a3683fd0e4980ae4926497ba7c7b7e8606f3e88e.tar.gz
rails-a3683fd0e4980ae4926497ba7c7b7e8606f3e88e.tar.bz2
rails-a3683fd0e4980ae4926497ba7c7b7e8606f3e88e.zip
find(:all) => all
Diffstat (limited to 'actionpack/lib/action_controller/caching/fragments.rb')
-rw-r--r--actionpack/lib/action_controller/caching/fragments.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/caching/fragments.rb b/actionpack/lib/action_controller/caching/fragments.rb
index 2bdb23c4d7..abeb49d16f 100644
--- a/actionpack/lib/action_controller/caching/fragments.rb
+++ b/actionpack/lib/action_controller/caching/fragments.rb
@@ -12,13 +12,13 @@ module ActionController #:nodoc:
#
# <% cache do %>
# All the topics in the system:
- # <%= render :partial => "topic", :collection => Topic.find(:all) %>
+ # <%= render :partial => "topic", :collection => Topic.all %>
# <% end %>
#
# This cache will bind the name of the action that called it, so if
# this code was part of the view for the topics/list action, you
# would be able to invalidate it using:
- #
+ #
# expire_fragment(:controller => "topics", :action => "list")
#
# This default behavior is limited if you need to cache multiple