Class: Dune::Balanced::Bankaccount::AccountsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Dune::Balanced::Bankaccount::AccountsController
- Defined in:
- app/controllers/dune/balanced/bankaccount/accounts_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#new ⇒ Object
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 |