diff options
author | Justin Campbell <justin@justincampbell.me> | 2011-12-17 07:39:52 -0500 |
---|---|---|
committer | Justin Campbell <justin@justincampbell.me> | 2011-12-17 07:40:25 -0500 |
commit | 4d5266e2706195888c9f72fdc9ebde22f89a08df (patch) | |
tree | d692c3bf08334ef7af8a376d20f09ee07ad04842 /actionpack/lib/action_dispatch/http | |
parent | 4f35d5a18b1192f03c36b23b2f6a8b3b2d2c0347 (diff) | |
download | rails-4d5266e2706195888c9f72fdc9ebde22f89a08df.tar.gz rails-4d5266e2706195888c9f72fdc9ebde22f89a08df.tar.bz2 rails-4d5266e2706195888c9f72fdc9ebde22f89a08df.zip |
Allow symbols to be passed for extension aliases
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_type.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index 8a9f9c4315..25affb9f50 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -103,7 +103,7 @@ module Mime SET << Mime.const_get(symbol.to_s.upcase) ([string] + mime_type_synonyms).each { |str| LOOKUP[str] = SET.last } unless skip_lookup - ([symbol.to_s] + extension_synonyms).each { |ext| EXTENSION_LOOKUP[ext] = SET.last } + ([symbol] + extension_synonyms).each { |ext| EXTENSION_LOOKUP[ext.to_s] = SET.last } end def parse(accept_header) |