mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-20 21:59:38 +02:00
15 lines
244 B
Ruby
15 lines
244 B
Ruby
|
module Plaidable
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
class_methods do
|
||
|
def plaid_provider
|
||
|
Provider::Plaid.new if Rails.application.config.plaid
|
||
|
end
|
||
|
end
|
||
|
|
||
|
private
|
||
|
def plaid_provider
|
||
|
self.class.plaid_provider
|
||
|
end
|
||
|
end
|