Sha256: 316212066915f4d1f064154ee82fed1a138b7227e7fcb242e30943b0d9f7c696
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
module Kms class SettingsController < ApplicationController authorize_resource :class => false def show render json: Settings.instance end def update @settings = Settings.instance if @settings.update(settings_params) render json: @settings else render json: @settings.to_json(methods: :errors), status: :unprocessable_entity end end protected def settings_params params.require(:setting).permit! end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kms-1.1.0 | app/controllers/kms/settings_controller.rb |
kms-1.0.1 | app/controllers/kms/settings_controller.rb |
kms-1.0.0 | app/controllers/kms/settings_controller.rb |