Class: Fopost::Rails::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/fopost/rails/railtie.rb

Overview

Registers config.fopost, so an app can set the SDK up from config/application.rb:

config.fopost.api_key = Rails.application.credentials.dig(:fopost, :api_key)

Nothing is loaded eagerly: the client is built on first use and the jobs are autoloaded, so booting this gem costs a require of the SDK.