mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Permit type parameter
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
785591e2da
commit
f06d2e120a
@ -58,7 +58,7 @@ class Fluentd::Settings::InTailController < ApplicationController
|
||||
permit_params = target_class._types.keys
|
||||
permit_params << :parse_type
|
||||
section_class = Fluentd::Setting.const_get("parser_#{params.dig(:setting, :parse_type)}".classify)
|
||||
permit_params << { parse: section_class._types.keys }
|
||||
permit_params << { parse: section_class._types.keys + [:type] }
|
||||
params.require(:setting).permit(*permit_params)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user