Skip to content

Commit

Permalink
Remove unneeded interning.
Browse files Browse the repository at this point in the history
  • Loading branch information
NZKoz committed Sep 30, 2008
1 parent 35d731e commit 0b46503
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions actionpack/lib/action_controller/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def template_format
parameter_format = parameters[:format]

if parameter_format
parameter_format.to_sym
parameter_format
elsif xhr?
:js
else
Expand All @@ -176,8 +176,7 @@ def template_format
end

def cache_format
parameter_format = parameters[:format]
parameter_format && parameter_format.to_sym
parameters[:format]
end

# Returns true if the request's "X-Requested-With" header contains
Expand Down

0 comments on commit 0b46503

Please sign in to comment.