docbrown/app/controllers/admin/settings_controller.rb
Michael Kohl 0d193ab75c
Refactor admin settings view into partials (#13950)
* Reactor admin settings view into partials

* Fix Stimulus problem

* Add SMTP partial
2021-06-15 10:30:24 +07:00

23 lines
773 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
# NOTE: The "show" action uses a lot of partials, this makes it easier to
# reference them.
prepend_view_path("app/views/admin/settings")
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