app/controllers/argyle/callback_controller.rb in argyle-0.2.0 vs app/controllers/argyle/callback_controller.rb in argyle-1.0.0.beta

- old
+ new

@@ -4,21 +4,21 @@ def plaid_access_token @plaid_access_token ||= plaid_exchange_token.access_token end def plaid_user - @plaid_user ||= Argyle.plaid_client.set_user(plaid_access_token, plaid_products) + @plaid_user ||= Argyle.plaid_client::User.load(plaid_access_token, plaid_products) end protected def plaid_public_token raise Argyle::Error, "public token not present in request" unless params[:public_token] params[:public_token] end def plaid_exchange_token - @plaid_access_token_response ||= Argyle.plaid_client.exchange_token(plaid_public_token) + @plaid_access_token_response ||= Argyle.plaid_client::User.exchange_token(plaid_public_token, params[:account_id]) end def plaid_products Array(Argyle.configuration.product) end