aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
diff options
context:
space:
mode:
authorJack Bracewell <jack.bracewell@unboxedconsulting.com>2016-09-14 17:16:43 +0100
committerJack Bracewell <jack.bracewell@unboxedconsulting.com>2016-09-14 17:24:14 +0100
commit875dde1eba682fe657bddf385193908a4712737b (patch)
tree4590861ed4b2891c361d5c27f82e6f2628e4b225 /actionpack/lib/action_controller/metal
parent1d7b00d6072e4749e90fb4bc8307dc06b052848d (diff)
downloadrails-875dde1eba682fe657bddf385193908a4712737b.tar.gz
rails-875dde1eba682fe657bddf385193908a4712737b.tar.bz2
rails-875dde1eba682fe657bddf385193908a4712737b.zip
Correct `render text:` deprecation message
The default Content-Type is `text/html`, not `text/plain`.
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r--actionpack/lib/action_controller/metal/rendering.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/rendering.rb b/actionpack/lib/action_controller/metal/rendering.rb
index 46ddf48926..f8f91ed41c 100644
--- a/actionpack/lib/action_controller/metal/rendering.rb
+++ b/actionpack/lib/action_controller/metal/rendering.rb
@@ -90,7 +90,7 @@ module ActionController
render as `text/plain`, `render html: '<strong>HTML</strong>'` to
render as `text/html`, or `render body: 'raw'` to match the deprecated
behavior and render with the default Content-Type, which is
- `text/plain`.
+ `text/html`.
WARNING
end