Tanner
Tanner

Reputation: 21

Ruby on Rails Configuration - Plaid Gem

I am trying to integrate the plaid gem into one of my projects. From the docs it says to configure it as such.

https://github.com/plaid/plaid-ruby

Plaid.config do |p|
  p.customer_id = 'Plaid provided customer ID here'
  p.secret = 'Plaid provided secret key here'
  p.environment_location = 'URL for the development or production environment'
end

My question is what file should I have this code? Should it go in my application.rb? config.rb? Just want to make sure I'm following convention. Thanks!

Upvotes: 2

Views: 769

Answers (1)

marilyne.christiansen
marilyne.christiansen

Reputation: 176

You should create this file in config/initializers directory with any file name i.e. plaid.rb.

FYI: Using Initializer Files.

Upvotes: 2

Related Questions