mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Use redirect_back to suppress deprecation warning
> DEPRECATION WARNING: `redirect_to :back` is deprecated and will be > removed from Rails 5.1. Please use `redirect_back(fallback_location: > fallback_location)` where `fallback_location` represents the location > to use if the request has no HTTP referer information. Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
56452b211b
commit
79777eed9e
@ -28,7 +28,7 @@ module SettingHistoryConcern
|
||||
else
|
||||
flash = { danger: @fluentd.agent.log.tail(1).first }
|
||||
end
|
||||
redirect_to :back, flash: flash
|
||||
redirect_back fallback_location: root_url, flash: flash
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user