Sha256: 020f375eecfb2fc51bb15a1030eaefece8ca7039648de7a6dc7e8b8962a49ad7

Contents?: true

Size: 271 Bytes

Versions: 7

Compression:

Stored size: 271 Bytes

Contents

class Admin::SettingsController < Admin::BaseController

  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
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jabe-0.5.6 app/controllers/admin/settings_controller.rb
jabe-0.5.5 app/controllers/admin/settings_controller.rb
jabe-0.5.4 app/controllers/admin/settings_controller.rb
jabe-0.5.3 app/controllers/admin/settings_controller.rb
jabe-0.5.2 app/controllers/admin/settings_controller.rb
jabe-0.5.1 app/controllers/admin/settings_controller.rb
jabe-0.5.0 app/controllers/admin/settings_controller.rb