mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
Adding support for some plugins was hard. After this commit, easy to add a plugin that has commonly setting style. Before: - Add model, controller, and views for it. After: - Add model and controller. view is shared.
19 lines
503 B
Ruby
19 lines
503 B
Ruby
class Fluentd::Settings::OutForwardController < ApplicationController
|
|
include SettingConcern
|
|
|
|
private
|
|
|
|
def target_class
|
|
Fluentd::Setting::OutForward
|
|
end
|
|
|
|
def setting_params
|
|
params.require(:fluentd_setting_out_forward).permit(*Fluentd::Setting::OutForward::KEYS).merge(
|
|
params.require(:fluentd_setting_out_forward).permit(
|
|
:server => Fluentd::Setting::OutForward::Server::KEYS,
|
|
:secondary => Fluentd::Setting::OutForward::Secondary::KEYS,
|
|
),
|
|
)
|
|
end
|
|
end
|