foodsoft/app/controllers/finance/bank_accounts_controller.rb

9 lines
240 B
Ruby
Raw Normal View History

2018-09-14 19:33:27 +02:00
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