diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-09-30 11:31:00 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-09-30 11:34:05 +0200 |
commit | 0b465032540ef92353e67eabd05eaf5867bfcc31 (patch) | |
tree | 7551521fc913e601aed6dc703d9c4e31b62dd9da /actionpack/lib | |
parent | 35d731ef0aaf1b6103121bb2c2d21f5b17c26b3c (diff) | |
download | rails-0b465032540ef92353e67eabd05eaf5867bfcc31.tar.gz rails-0b465032540ef92353e67eabd05eaf5867bfcc31.tar.bz2 rails-0b465032540ef92353e67eabd05eaf5867bfcc31.zip |
Remove unneeded interning.
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 8e6cfb41dc..5e492e3ee1 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -167,7 +167,7 @@ module ActionController parameter_format = parameters[:format] if parameter_format - parameter_format.to_sym + parameter_format elsif xhr? :js else @@ -176,8 +176,7 @@ module ActionController 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 |