Skip to content
This repository
Browse code

drop an unused hash; change slang to SPECIAL

  • Loading branch information...
commit 6893c23f48d2707714240a1ae2a410a0661aa3a5 1 parent f0d5e32
Vipul A M vipulnsward authored
2  actionmailer/test/mailers/base_mailer.rb
@@ -119,7 +119,7 @@ def email_with_translations
119 119 def without_mail_call
120 120 end
121 121
122   - def with_nil_as_return_value(hash = {})
  122 + def with_nil_as_return_value
123 123 mail(:template_name => "welcome")
124 124 nil
125 125 end
4 actionpack/lib/action_dispatch/http/cache.rb
@@ -92,7 +92,7 @@ def etag=(etag)
92 92 LAST_MODIFIED = "Last-Modified".freeze
93 93 ETAG = "ETag".freeze
94 94 CACHE_CONTROL = "Cache-Control".freeze
95   - SPESHUL_KEYS = %w[extras no-cache max-age public must-revalidate]
  95 + SPECIAL_KEYS = %w[extras no-cache max-age public must-revalidate]
96 96
97 97 def cache_control_segments
98 98 if cache_control = self[CACHE_CONTROL]
@@ -108,7 +108,7 @@ def cache_control_headers
108 108 cache_control_segments.each do |segment|
109 109 directive, argument = segment.split('=', 2)
110 110
111   - if SPESHUL_KEYS.include? directive
  111 + if SPECIAL_KEYS.include? directive
112 112 key = directive.tr('-', '_')
113 113 cache_control[key.to_sym] = argument || true
114 114 else

0 comments on commit 6893c23

Please sign in to comment.
Something went wrong with that request. Please try again.