diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-17 17:30:40 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-17 17:30:40 +0000 |
commit | 4ec7a4b5b740aaeb81d2724918abda0b4b46c0f2 (patch) | |
tree | 85b2dbf28fddaa0b500c86150243891c596a6318 /actionpack | |
parent | baae5a1468d22700cf7bf7e35804b69d7758dd0b (diff) | |
download | rails-4ec7a4b5b740aaeb81d2724918abda0b4b46c0f2.tar.gz rails-4ec7a4b5b740aaeb81d2724918abda0b4b46c0f2.tar.bz2 rails-4ec7a4b5b740aaeb81d2724918abda0b4b46c0f2.zip |
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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index ecd9ebc8f0..13dbf9e3d4 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -121,7 +121,7 @@ module ActionController #:nodoc: 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 |