* Add Admin:Settings::BaseController and refactor * Further simplify controllers * Add comments, more cleanup * Update mandatory settings controller * Update spec * Update service object and spec * Update controller * Update app/services/settings/general/upsert.rb Co-authored-by: Jamie Gaskins <jamie@forem.com> Co-authored-by: Jamie Gaskins <jamie@forem.com>
17 lines
412 B
Ruby
17 lines
412 B
Ruby
module Admin
|
|
module Settings
|
|
class AuthenticationsController < Admin::Settings::BaseController
|
|
private
|
|
|
|
def upsert_config(settings)
|
|
::Settings::Authentication::Upsert.call(settings)
|
|
end
|
|
|
|
def settings_params
|
|
params
|
|
.require(:settings_authentication)
|
|
.permit(*::Settings::Authentication.keys, :auth_providers_to_enable)
|
|
end
|
|
end
|
|
end
|
|
end
|