Class: Spina::Shop::Admin::CustomerAccountsController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/spina/shop/admin/customer_accounts_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



7
8
9
10
# File 'app/controllers/spina/shop/admin/customer_accounts_controller.rb', line 7

def edit
  @customer_account = @customer.
  add_breadcrumb CustomerAccount.model_name.human
end

#updateObject



12
13
14
15
16
17
18
19
20
# File 'app/controllers/spina/shop/admin/customer_accounts_controller.rb', line 12

def update
  @customer_account = @customer.
  if @customer_account.update_attributes()
    redirect_to spina.shop_admin_customer_path(@customer)
  else
    add_breadcrumb CustomerAccount.model_name.human
    render :edit
  end
end