Class: Integral::Backend::SettingsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Integral::Backend::SettingsController
- Defined in:
- app/controllers/integral/backend/settings_controller.rb
Overview
Settings management
Instance Method Summary collapse
-
#create ⇒ Object
POST / Update settings.
-
#index ⇒ Object
GET / Lists all settings.
Methods inherited from BaseController
#activities, #activity, #destroy, #duplicate, #edit, #list, #new, #show, #update
Instance Method Details
#create ⇒ Object
POST / Update settings
13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/integral/backend/settings_controller.rb', line 13 def create # TODO: Re-implement this # Parse for booleans settings_params.each do |key, value| Settings[key] = parsed_value(value) if value.present? end flash[:notice] = t('integral.backend.settings.notification.successful_update') redirect_to backend_settings_path end |
#index ⇒ Object
GET / Lists all settings
9 |
# File 'app/controllers/integral/backend/settings_controller.rb', line 9 def index; end |