Sha256: 2b289829f55da5d7f3bca26b7d3d6719542d91bf01ab3992cde574fa4f1353f0

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
sunrise-cms-1.1.1 app/controllers/sunrise/settings_controller.rb
sunrise-cms-1.1.0 app/controllers/sunrise/settings_controller.rb