Class: ActiveadminSettingsCached::SettingsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/activeadmin_settings_cached/settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



3
4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/activeadmin_settings_cached/settings_controller.rb', line 3

def update
  settings = ActiveadminSettingsCached.settings_klass

  #TODO: this method call save every param
  # save only changed values
  settings_params.each_pair do |name, value|
    settings[name] = value
  end

  redirect_to :back
end