Class: Payola::CustomersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/payola/customers_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject


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