diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-21 12:11:27 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-21 12:11:27 -0700 |
commit | fb9a39f4fa9a3836eca6e33703691ede17737411 (patch) | |
tree | 1cd1925a1b5ec4feb1e244d282916b252b5e63fa /actionpack | |
parent | e4ba720c17cb141babfbffec60db34b745fd5637 (diff) | |
download | rails-fb9a39f4fa9a3836eca6e33703691ede17737411.tar.gz rails-fb9a39f4fa9a3836eca6e33703691ede17737411.tar.bz2 rails-fb9a39f4fa9a3836eca6e33703691ede17737411.zip |
swap upcase and to_sym
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/mime_responds.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index 09aa76f1ca..fc42fe5c07 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -229,7 +229,7 @@ module ActionController #:nodoc: @responses = {} @variant = variant - mimes.each { |mime| @responses[Mime::Type[mime.to_sym.upcase]] = nil } + mimes.each { |mime| @responses[Mime::Type[mime.upcase.to_sym]] = nil } end def any(*args, &block) |