Method: Admin::CustomersController#update
- Defined in:
- app/controllers/tang/admin/customers_controller.rb
#update ⇒ Object
PATCH/PUT /customers/1
23 24 25 26 27 28 29 30 |
# File 'app/controllers/tang/admin/customers_controller.rb', line 23 def update if @customer.update(customer_params) UpdateCustomer.call(@customer) redirect_to admin_customer_path(@customer), notice: 'Customer was successfully updated.' else render :edit end end |