mirror of
https://github.com/we-promise/sure.git
synced 2026-04-21 13:04:18 +00:00
Provider optimisation (#375)
* Implement a provider configured account type * Fix for SimpleFIN * FIX tests and linter
This commit is contained in:
@@ -66,9 +66,13 @@ module AccountableResource
|
||||
|
||||
private
|
||||
def set_link_options
|
||||
@show_us_link = Current.family.can_connect_plaid_us?
|
||||
@show_eu_link = Current.family.can_connect_plaid_eu?
|
||||
@show_lunchflow_link = Current.family.can_connect_lunchflow?
|
||||
account_type_name = accountable_type.name
|
||||
|
||||
# Get all available provider configs dynamically for this account type
|
||||
@provider_configs = Provider::Factory.connection_configs_for_account_type(
|
||||
account_type: account_type_name,
|
||||
family: Current.family
|
||||
)
|
||||
end
|
||||
|
||||
def accountable_type
|
||||
|
||||
Reference in New Issue
Block a user