提交 6893c23f 编写于 作者: V Vipul A M

drop an unused hash; change slang to SPECIAL

上级 f0d5e32f
......@@ -119,7 +119,7 @@ def email_with_translations
def without_mail_call
end
def with_nil_as_return_value(hash = {})
def with_nil_as_return_value
mail(:template_name => "welcome")
nil
end
......
......@@ -92,7 +92,7 @@ def etag=(etag)
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 @@ def cache_control_headers
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册