instance method config

Ruby on Rails 7.2.3

Since v5.2.8.1

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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 75
    def config
      @config ||= deserialize(read).deep_symbolize_keys
    end

Defined in activesupport/lib/active_support/encrypted_configuration.rb line 75 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::EncryptedConfiguration

Type at least 2 characters to search.

↑↓ navigate · open · esc close