mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Fix render option to suppress deprecation warning
> DEPRECATION WARNING: `render :text` is deprecated because it does not > actually render a `text/plain` response. Switch to `render plain: > 'plain text'` to 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/html`. Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
4fb6823669
commit
fe4dd681b6
@ -6,7 +6,7 @@ describe DummyController do
|
||||
controller DummyController do
|
||||
skip_before_action :login_required
|
||||
def index
|
||||
render :text => "Hello World"
|
||||
render plain: "Hello World"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user