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