Class: SolidusAdmin::CustomersController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/solidus_admin/customers_controller.rb

Instance Method Summary collapse

Methods included from ComponentsHelper

#component

Instance Method Details

#destroyObject



14
15
16
17
18
19
20
21
22
# File 'app/controllers/solidus_admin/customers_controller.rb', line 14

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

#showObject



6
7
8
9
10
11
12
# File 'app/controllers/solidus_admin/customers_controller.rb', line 6

def show
  respond_to do |format|
    format.html do
      render component('orders/show/email').new(order: @order)
    end
  end
end