1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 07:39:39 +02:00

Initial pass at Plaid EU (#1555)

* Initial pass at Plaid EU

* Add EU support to Plaid Items

* Lint

* Temp fix for rubocop isseus

* Merge cleanup

* Pass in region and get tests passing

* Use absolute path for translation

---------

Signed-off-by: Josh Pigford <josh@joshpigford.com>
This commit is contained in:
Josh Pigford 2025-01-31 12:13:58 -06:00 committed by GitHub
parent 41873de11d
commit 4bf72506d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 81 additions and 21 deletions

View file

@ -5,6 +5,7 @@ class PlaidItemsController < ApplicationController
Current.family.plaid_items.create_from_public_token(
plaid_item_params[:public_token],
item_name: item_name,
region: plaid_item_params[:region]
)
redirect_to accounts_path, notice: t(".success")
@ -29,7 +30,7 @@ class PlaidItemsController < ApplicationController
end
def plaid_item_params
params.require(:plaid_item).permit(:public_token, metadata: {})
params.require(:plaid_item).permit(:public_token, :region, metadata: {})
end
def item_name