Add BankAccountConnector to implement bank import methods in plugins
This commit is contained in:
parent
d476993321
commit
5d84156bd8
11 changed files with 281 additions and 22 deletions
|
|
@ -10,7 +10,9 @@ class BankAccount < ApplicationRecord
|
|||
validates_numericality_of :balance, :message => I18n.t('bank_account.model.invalid_balance')
|
||||
|
||||
# @return [Function] Method wich can be called to import transaction from a bank or nil if unsupported
|
||||
def find_import_method
|
||||
def find_connector
|
||||
klass = BankAccountConnector.find iban
|
||||
return klass.new self if klass
|
||||
end
|
||||
|
||||
def assign_unlinked_transactions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue