instance method
config
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
config()
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 } }
Source
# File activesupport/lib/active_support/encrypted_configuration.rb, line 85
def config
@config ||= deep_symbolize_keys(deserialize(read))
end
Defined in activesupport/lib/active_support/encrypted_configuration.rb line 85
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedConfiguration