Skip to content
This repository
Browse code

Remove unneeded interning.

  • Loading branch information...
commit 0b465032540ef92353e67eabd05eaf5867bfcc31 1 parent 35d731e
Michael Koziarski NZKoz authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 actionpack/lib/action_controller/request.rb
5 actionpack/lib/action_controller/request.rb
@@ -167,7 +167,7 @@ def template_format
167 167 parameter_format = parameters[:format]
168 168
169 169 if parameter_format
170   - parameter_format.to_sym
  170 + parameter_format
171 171 elsif xhr?
172 172 :js
173 173 else
@@ -176,8 +176,7 @@ def template_format
176 176 end
177 177
178 178 def cache_format
179   - parameter_format = parameters[:format]
180   - parameter_format && parameter_format.to_sym
  179 + parameters[:format]
181 180 end
182 181
183 182 # 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.