Method: ActiveSupport::EncryptedConfiguration#config
- Defined in:
- lib/active_support/encrypted_configuration.rb
#config ⇒ Object
Returns the decrypted content as a Hash with symbolized keys.
my_config = ActiveSupport::EncryptedConfiguration.new(...)
my_config.read # => "some_secret: 123\nsome_namespace:\n another_secret: 456"
my_config.config
# => { some_secret: 123, some_namespace: { another_secret: 789 } }
85 86 87 |
# File 'lib/active_support/encrypted_configuration.rb', line 85 def config @config ||= deep_symbolize_keys(deserialize(read)) end |