Sha256: 1c49b85c610c87df34b4434a05f4753dec16bbbaf6e0691b374eab1a2e767170

Contents?: true

Size: 323 Bytes

Versions: 10

Compression:

Stored size: 323 Bytes

Contents

module Sunrise
  class SettingsController < Sunrise::ApplicationController
    authorize_resource :class => false
    
    def edit
      @settings = Settings.get_all
      respond_with(@settings)
    end
    
    def update
      Settings.update_attributes(params[:settings])
      redirect_to root_path
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sunrise-cms-1.0.6 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.5 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.4 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.3 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.2 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.1 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.0 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.0.rc3 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.0.rc2 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.0.0.rc1 app/controllers/sunrise/settings_controller.rb