mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user