diff options
author | Jack Bracewell <jack.bracewell@unboxedconsulting.com> | 2016-09-14 17:16:43 +0100 |
---|---|---|
committer | Jack Bracewell <jack.bracewell@unboxedconsulting.com> | 2016-09-14 17:24:14 +0100 |
commit | 875dde1eba682fe657bddf385193908a4712737b (patch) | |
tree | 4590861ed4b2891c361d5c27f82e6f2628e4b225 | |
parent | 1d7b00d6072e4749e90fb4bc8307dc06b052848d (diff) | |
download | rails-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`.
-rw-r--r-- | actionpack/lib/action_controller/metal/rendering.rb | 2 |
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 |