diff options
author | Akira Matsuda <ronnie@dio.jp> | 2012-06-05 05:24:55 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2012-06-06 19:33:38 +0900 |
commit | 099639670a9a02ea2847117a541c4f48585951ad (patch) | |
tree | 139b95fa4e4e24154bae6f7858dc88dcbffac0d8 /actionpack/lib/action_controller/caching | |
parent | edee2c7b3bec824aa653b09d63aff06ab5542e06 (diff) | |
download | rails-099639670a9a02ea2847117a541c4f48585951ad.tar.gz rails-099639670a9a02ea2847117a541c4f48585951ad.tar.bz2 rails-099639670a9a02ea2847117a541c4f48585951ad.zip |
Symbol responds_to :upcase & :downcase in Ruby >= 1.9
Diffstat (limited to 'actionpack/lib/action_controller/caching')
-rw-r--r-- | actionpack/lib/action_controller/caching/pages.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching/pages.rb b/actionpack/lib/action_controller/caching/pages.rb index dd4eddbe9a..73b8cd383c 100644 --- a/actionpack/lib/action_controller/caching/pages.rb +++ b/actionpack/lib/action_controller/caching/pages.rb @@ -110,7 +110,7 @@ module ActionController #:nodoc: gzip_level = options.fetch(:gzip, page_cache_compression) gzip_level = case gzip_level when Symbol - Zlib.const_get(gzip_level.to_s.upcase) + Zlib.const_get(gzip_level.upcase) when Fixnum gzip_level when false |