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
14
# File 'app/controllers/payola/customers_controller.rb', line 6

def update
  if params[:id].present?
    Payola::UpdateCustomer.call(params[:id], customer_params)
    flash_options = { notice: t('payola.customers.updated') }
  else
    flash_options = { alert: t('payola.customers.not_updated') }
  end
  redirect_to return_to, flash: flash_options
end