Module: CoreSystemConfigurationsController
- Includes:
- CoreController
- Defined in:
- lib/app/controllers/concerns/core_system_configuration_controller.rb
Overview
Manage the system configuration page
Instance Method Summary collapse
-
#edit ⇒ Object
Edit the system configuration.
-
#update ⇒ Object
Update and log the system configuration changes.
Instance Method Details
#edit ⇒ Object
Edit the system configuration
12 13 14 |
# File 'lib/app/controllers/concerns/core_system_configuration_controller.rb', line 12 def edit load_configuration end |
#update ⇒ Object
Update and log the system configuration changes
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/app/controllers/concerns/core_system_configuration_controller.rb', line 19 def update # @system_configuration.update_attributes_and_log! @current_admin_user, system_configuration_params SystemConfiguration.configuration.update! system_configuration_params flash[:info] = 'System Configuration Updated, sync job running in the background' Cron::SwitchboardSyncConfiguration.perform_later redirect_to index_path rescue StandardError => error log_controller_error error load_configuration render :edit end |