Class: Dune::Balanced::Bankaccount::AccountsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/dune/balanced/bankaccount/accounts_controller.rb

Direct Known Subclasses

PaymentsController

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
15
# File 'app/controllers/dune/balanced/bankaccount/accounts_controller.rb', line 10

def create
  attach_bank_to_customer

  flash[:success] = t('dune.balanced.bankaccount.accounts.create.success')
  redirect_to main_app.payments_user_path(current_user)
end

#newObject



5
6
7
8
# File 'app/controllers/dune/balanced/bankaccount/accounts_controller.rb', line 5

def new
  @bank_account = customer.bank_accounts.to_a.last
  render layout: false
end