Class: Kms::SettingsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Kms::SettingsController
- Defined in:
- app/controllers/kms/settings_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#show ⇒ Object
5 6 7 |
# File 'app/controllers/kms/settings_controller.rb', line 5 def show render json: Settings.instance end |
#update ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/controllers/kms/settings_controller.rb', line 9 def update @settings = Settings.instance if @settings.update(settings_params) render json: @settings else render json: { errors: @settings.errors. }.to_json, status: :unprocessable_entity end end |