method
config
v7.1.3.4 -
Show latest stable
- Class:
ActiveSupport::EncryptedConfiguration
config()public
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 } }