Class: SolidusAdmin::CustomersController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- SolidusAdmin::CustomersController
- Defined in:
- app/controllers/solidus_admin/customers_controller.rb
Instance Method Summary collapse
Methods included from ComponentsHelper
Instance Method Details
#destroy ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/solidus_admin/customers_controller.rb', line 10 def destroy if @order.update(user: nil) flash[:success] = t('.success') else flash[:error] = t('.error') end redirect_to order_path(@order), status: :see_other end |
#show ⇒ Object
6 7 8 |
# File 'app/controllers/solidus_admin/customers_controller.rb', line 6 def show render component('orders/show/email').new(order: @order) end |