docbrown/app/controllers/admin/settings_controller.rb
Michael Kohl dcf942e3a2
Add Admin:Settings controllers (#13851)
* 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>
2021-06-08 10:13:55 +07:00

19 lines
622 B
Ruby

module Admin
# This controller is solely responsible for rendering the settings page at
# /admin/customization/config. The actual updates get handled by the settings
# controllers in the Admin::Settings namespace.
class SettingsController < Admin::ApplicationController
layout "admin"
def show
@confirmation_text =
"My username is @#{current_user.username} and this action is 100% safe and appropriate."
end
private
# We need to override this method from Admin::ApplicationController since
# there is no resource to authorize.
def authorization_resource; end
end
end