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
# File 'app/controllers/activeadmin_settings_cached/settings_controller.rb', line 3

def update
  settings_params.each_pair do |name, value|
    settings_model[name] = value
  end

  flash[:success] = t('.success'.freeze)
  redirect_to :back
end