Skip to content

Commit

Permalink
Merge pull request rails#9792 from vipulnsward/drop_unused_hash
Browse files Browse the repository at this point in the history
drop an unused hash; change slang to SPECIAL
  • Loading branch information
steveklabnik committed Mar 19, 2013
2 parents f0d5e32 + 6893c23 commit 66ac0c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actionmailer/test/mailers/base_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/http/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 66ac0c5

Please sign in to comment.