foodsoft/app/controllers/finance/bank_accounts_controller.rb
2018-10-11 22:29:15 +02:00

8 lines
240 B
Ruby

class Finance::BankAccountsController < Finance::BaseController
def index
@bank_accounts = BankAccount.order('name')
redirect_to finance_bank_account_transactions_url(@bank_accounts.first) if @bank_accounts.count == 1
end
end