Class: Admin::SettingsController

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

Instance Method Summary collapse

Instance Method Details

#updateObject



3
4
5
6
7
8
9
10
# File 'app/controllers/admin/settings_controller.rb', line 3

def update
  if SETTINGS.update_attributes(params[:settings])
    Time.zone = SETTINGS.time_zone
    redirect_to admin_root_path, :notice => 'Settings updated'
  else
    render :edit
  end
end