aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-05-20 16:00:50 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-05-20 16:01:21 -0700
commitc86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7 (patch)
tree2c2a0a01911ac1653bcc5dad0442a2ab65246dc4 /actionpack/lib/action_dispatch
parentb46c9071c382b48c5ff349fbe61854683663a866 (diff)
downloadrails-c86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7.tar.gz
rails-c86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7.tar.bz2
rails-c86ec82cf63938f691c9ae4f5a4d72bea9e8a9c7.zip
Wrap string body in an array
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
index 108355da63..4d598669c7 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -102,7 +102,7 @@ module ActionDispatch
end
def render(status, body)
- [status, {'Content-Type' => 'text/html', 'Content-Length' => body.length.to_s}, body]
+ [status, {'Content-Type' => 'text/html', 'Content-Length' => body.length.to_s}, [body]]
end
def public_path