Class: Spree::Admin::BoltsController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Admin::BoltsController
- Defined in:
- app/controllers/spree/admin/bolts_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
10 |
# File 'app/controllers/spree/admin/bolts_controller.rb', line 10 def edit; end |
#show ⇒ Object
8 |
# File 'app/controllers/spree/admin/bolts_controller.rb', line 8 def show; end |
#update ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/spree/admin/bolts_controller.rb', line 12 def update if @bolt_configuration.update(bolt_configuration_params) flash[:success] = t('spree.admin.bolt.updated_successfully') redirect_to admin_bolt_path else flash[:error] = @bolt_configuration.errors..to_sentence render :edit end end |