Class: Payola::CustomersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Payola::CustomersController
- Defined in:
- app/controllers/payola/customers_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/payola/customers_controller.rb', line 6 def update if params[:id].present? Payola::UpdateCustomer.call(params[:id], customer_params) redirect_to return_to, notice: "Succesfully updated customer" else redirect_to return_to, alert: "Could not update customer" end end |