Class: ContainerConfig::Provider::RailsCredential
- Defined in:
- lib/container_config/provider/rails_credential.rb
Overview
Rails credential config value provider
Instance Method Summary collapse
-
#load(key, *dig_keys, **options) ⇒ Object
Loads a Rails credential configuration setting.
- #name ⇒ Object
Instance Method Details
#load(key, *dig_keys, **options) ⇒ Object
Loads a Rails credential configuration setting
25 26 27 28 |
# File 'lib/container_config/provider/rails_credential.rb', line 25 def load(key, *dig_keys, **) super ::Rails.application&.credentials&.config&.dig(*dig_keys.map(&:to_sym)) end |
#name ⇒ Object
10 11 12 |
# File 'lib/container_config/provider/rails_credential.rb', line 10 def name "Rails Credential" end |