Skip to content

Commit

Permalink
Fixed bug in page caching that prevented it from working at all
Browse files Browse the repository at this point in the history
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 4ec7a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/caching.rb
Expand Up @@ -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

Expand Down

0 comments on commit 4ec7a4b

Please sign in to comment.