Class: Html2img::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Html2img::Railtie
- Defined in:
- lib/html2img/railtie.rb
Overview
Wires the gem into Rails.
Loaded automatically when Rails is present, so a Rails app can configure the
client from config/application.rb or any environment file:
config.html2img.api_key = Rails.application.credentials.html2img_api_key
config.html2img.timeout = 45
Anything left unset falls back to the environment, as usual. This runs
before config/initializers, so an explicit Html2img.configure block in an
initializer still wins — run rails generate html2img:install to create one.