Class: KktShoppe::SettingsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- KktShoppe::SettingsController
- Defined in:
- app/controllers/kkt_shoppe/settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/kkt_shoppe/settings_controller.rb', line 6 def update if KktShoppe.settings.demo_mode? raise KktShoppe::Error, t('kkt_shoppe.settings.demo_mode_error') end KktShoppe::Setting.update_from_hash(params[:settings].permit!) redirect_to :settings, :notice => t('kkt_shoppe.settings.update_notice') end |