Class: Seekrit::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Seekrit::Railtie
- Defined in:
- lib/seekrit/railtie.rb
Overview
Optional Rails integration. Loaded automatically when Rails is present (see lib/seekrit.rb). Opt-in: resolved secrets are only loaded into ENV if you enable it, so nothing hits the network at boot unless you ask.
# config/application.rb (or an initializer)
config.seekrit.autoload = true # load $SEEKRIT_TOKEN's secrets into ENV on boot
config.seekrit.override = false # keep existing ENV vars (default)
Or call it yourself whenever you like:
Seekrit.load_env!