Skip to content
Browse files

Remove unneeded interning.

  • Loading branch information...
1 parent 35d731e commit 0b465032540ef92353e67eabd05eaf5867bfcc31 @NZKoz NZKoz committed Sep 30, 2008
Showing with 2 additions and 3 deletions.
  1. +2 −3 actionpack/lib/action_controller/request.rb
View
5 actionpack/lib/action_controller/request.rb
@@ -167,7 +167,7 @@ def template_format
parameter_format = parameters[:format]
if parameter_format
- parameter_format.to_sym
+ parameter_format
elsif xhr?
:js
else
@@ -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

0 comments on commit 0b46503

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