diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-08 12:12:45 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-08 12:12:58 -0800 |
commit | a595abff211eee97d75c51c085cfdc821b1edb46 (patch) | |
tree | e2bf6298f90c3369a8202b60e04bb22c3dbd737a /actionpack/lib/action_dispatch | |
parent | 103b29831e6d6a6c4363fd0e59ffcc6c343a14aa (diff) | |
download | rails-a595abff211eee97d75c51c085cfdc821b1edb46.tar.gz rails-a595abff211eee97d75c51c085cfdc821b1edb46.tar.bz2 rails-a595abff211eee97d75c51c085cfdc821b1edb46.zip |
Unknown :format param should result in empty request.formats
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rwxr-xr-x | actionpack/lib/action_dispatch/http/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 9314ff5c53..c24b404e2f 100755 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -167,7 +167,7 @@ module ActionDispatch @env["action_dispatch.request.formats"] ||= if parameters[:format] - [Mime[parameters[:format]]] + Array.wrap(Mime[parameters[:format]]) elsif xhr? || (accept && !accept.include?(?,)) accepts else |