Class: ForestAdminDatasourceMambuPayments::Plugins::Relations::LinkInternalAccountToBalances

Inherits:
TwoStepLinkPlugin
  • Object
show all
Defined in:
lib/forest_admin_datasource_mambu_payments/plugins/relations/link_internal_account_to_balances.rb

Overview

InternalAccount <-> Balance, transitive via InternalAccount.connected_account_ids vs Balance.connected_account_id. Install at the datasource level: @agent.use(plugin, {}).

Constant Summary

Constants inherited from TwoStepLinkPlugin

TwoStepLinkPlugin::ComputedDefinition

Instance Method Summary collapse

Methods inherited from TwoStepLinkPlugin

link, #run, virtual_fk

Instance Method Details

#install_source_filter(collection) ⇒ Object



11
12
13
# File 'lib/forest_admin_datasource_mambu_payments/plugins/relations/link_internal_account_to_balances.rb', line 11

def install_source_filter(collection)
  TwoStepConnectedAccountFilter.install(collection, target_field: 'connected_account_id')
end