Permalink
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...
dhh committed Jan 17, 2005
1 parent baae5a1 commit 4ec7a4b5b740aaeb81d2724918abda0b4b46c0f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 4ec7a4b

Please sign in to comment.