Class: Integral::Backend::SettingsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/integral/backend/settings_controller.rb

Overview

Settings management

Instance Method Summary collapse

Methods inherited from BaseController

#activities, #activity, #destroy, #duplicate, #edit, #list, #new, #show, #update

Instance Method Details

#createObject

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

#indexObject

GET / Lists all settings



9
# File 'app/controllers/integral/backend/settings_controller.rb', line 9

def index; end