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.
15 lines
271 B
Ruby
15 lines
271 B
Ruby
class Fluentd::Settings::OutS3Controller < ApplicationController
|
|
include SettingConcern
|
|
|
|
private
|
|
|
|
def target_class
|
|
Fluentd::Setting::OutS3
|
|
end
|
|
|
|
def setting_params
|
|
params.require(:fluentd_setting_out_s3).permit(*Fluentd::Setting::OutS3::KEYS)
|
|
end
|
|
|
|
end
|