diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-03-18 22:34:02 -0700 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-03-18 22:34:02 -0700 |
commit | 66ac0c567dfcc6a31568d270dba335eb1971abc3 (patch) | |
tree | 724d4a76de0c027de49458c69394bda8ce6d2f2c /actionpack | |
parent | f0d5e32f891dcfd49fb757cc8f3a0f221e3c06a8 (diff) | |
parent | 6893c23f48d2707714240a1ae2a410a0661aa3a5 (diff) | |
download | rails-66ac0c567dfcc6a31568d270dba335eb1971abc3.tar.gz rails-66ac0c567dfcc6a31568d270dba335eb1971abc3.tar.bz2 rails-66ac0c567dfcc6a31568d270dba335eb1971abc3.zip |
Merge pull request #9792 from vipulnsward/drop_unused_hash
drop an unused hash; change slang to SPECIAL
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/cache.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/cache.rb b/actionpack/lib/action_dispatch/http/cache.rb index 0d6015d993..f9b278349e 100644 --- a/actionpack/lib/action_dispatch/http/cache.rb +++ b/actionpack/lib/action_dispatch/http/cache.rb @@ -92,7 +92,7 @@ module ActionDispatch LAST_MODIFIED = "Last-Modified".freeze ETAG = "ETag".freeze CACHE_CONTROL = "Cache-Control".freeze - SPESHUL_KEYS = %w[extras no-cache max-age public must-revalidate] + SPECIAL_KEYS = %w[extras no-cache max-age public must-revalidate] def cache_control_segments if cache_control = self[CACHE_CONTROL] @@ -108,7 +108,7 @@ module ActionDispatch cache_control_segments.each do |segment| directive, argument = segment.split('=', 2) - if SPESHUL_KEYS.include? directive + if SPECIAL_KEYS.include? directive key = directive.tr('-', '_') cache_control[key.to_sym] = argument || true else |