Class: Admin::FinancesController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::FinancesController
- Defined in:
- app/controllers/admin/finances_controller.rb
Instance Method Summary collapse
- #index ⇒ Object
- #update_bank_accounts ⇒ Object
- #update_bank_gateways ⇒ Object
- #update_supplier_categories ⇒ Object
- #update_transaction_types ⇒ Object
Instance Method Details
#index ⇒ Object
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_accounts ⇒ Object
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_gateways ⇒ Object
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_categories ⇒ Object
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_types ⇒ Object
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 |