Class: Admin::FinancesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/finances_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


4
5
6
7
# File 'app/controllers/admin/finances_controller.rb', line 4

def index
  @bank_accounts = BankAccount.order('name')
  @financial_transaction_classes = FinancialTransactionClass.order('name ASC')
end

#update_bank_accountsObject


9
10
11
12
# File 'app/controllers/admin/finances_controller.rb', line 9

def update_bank_accounts
  @bank_accounts = BankAccount.order('name')
  render :layout => false
end

#update_transaction_typesObject


14
15
16
17
# File 'app/controllers/admin/finances_controller.rb', line 14

def update_transaction_types
  @financial_transaction_classes = FinancialTransactionClass.order('name ASC')
  render :layout => false
end