public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Fixed bug in page caching that prevented it from working at all

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@447 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Mon Jan 17 09:30:40 -0800 2005
commit  4ec7a4b5b740aaeb81d2724918abda0b4b46c0f2
tree    85b2dbf28fddaa0b500c86150243891c596a6318
parent  baae5a1468d22700cf7bf7e35804b69d7758dd0b
...
121
122
123
124
 
125
126
127
...
121
122
123
 
124
125
126
127
0
@@ -121,7 +121,7 @@
0
 
0
       private
0
         def caching_allowed
0
- !@request.method.post? && (@request.parameters.reject {|k, v| ['id', 'action', 'controller'].include?(k)}).empty?
0
+ !@request.post? && (@request.parameters.reject { |k, v| %w( id action controller ).include?(k) }).empty?
0
         end
0
     end
0
 

Comments

    No one has commented yet.