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
8
9
# File 'app/controllers/admin/finances_controller.rb', line 4

def index
  @bank_accounts = BankAccount.order('name')
  @bank_gateways = BankGateway.order('name')
  @financial_transaction_classes = FinancialTransactionClass.includes(:financial_transaction_types).order('name ASC')
  @supplier_categories = SupplierCategory.order('name')
end

#update_bank_accountsObject



11
12
13
14
# File 'app/controllers/admin/finances_controller.rb', line 11

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

#update_bank_gatewaysObject



16
17
18
19
# File 'app/controllers/admin/finances_controller.rb', line 16

def update_bank_gateways
  @bank_gateways = BankGateway.order('name')
  render layout: false
end

#update_supplier_categoriesObject



26
27
28
29
# File 'app/controllers/admin/finances_controller.rb', line 26

def update_supplier_categories
  @supplier_categories = SupplierCategory.order('name')
  render layout: false
end

#update_transaction_typesObject



21
22
23
24
# File 'app/controllers/admin/finances_controller.rb', line 21

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