Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 4ec7a4b5b740aaeb81d2724918abda0b4b46c0f2 1 parent baae5a1
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/caching.rb
View
2  actionpack/lib/action_controller/caching.rb
@@ -121,7 +121,7 @@ def cache_page(content = nil, options = {})
private
def caching_allowed
- !@request.method.post? && (@request.parameters.reject {|k, v| ['id', 'action', 'controller'].include?(k)}).empty?
+ !@request.post? && (@request.parameters.reject { |k, v| %w( id action controller ).include?(k) }).empty?
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.