Class: Ironclad::Railtie

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

Overview

Loads the credentials key for the current environment into ENV at boot, so a fresh checkout works with no key file on disk. Each Rails environment uses its own key if one is defined in config/ironclad.yml, otherwise the ‘default` (master) key.

A no-op when RAILS_MASTER_KEY is already set (deployed servers and CI provide the key directly) or when Ironclad isn’t configured yet.