Module: NeetoCommonsBackend::SecretsManagement
- Included in:
- Rails::Application
- Defined in:
- lib/neeto_commons_backend/secrets_management.rb
Instance Method Summary collapse
Instance Method Details
#neeto_secrets ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/neeto_commons_backend/secrets_management.rb', line 5 def neeto_secrets @_neeto_secrets ||= begin secrets = ActiveSupport::OrderedOptions.new secrets.deep_merge! common_secrets secrets.deep_merge! host_app_secrets # Fallback to config.secret_key_base if secrets.secret_key_base isn't set secrets.secret_key_base ||= config.secret_key_base secrets end @secrets = @_neeto_secrets end |