class Rails::Application
def credentials
config/credentials/#{environment}.key for the current
+config.credentials.key_path+ will point to either
or from the file specified by +config.credentials.key_path+. By default,
The encryption key is taken from either ENV["RAILS_MASTER_KEY"],
does not exist.
+production+ environment), or +config/credentials.yml.enc+ if that file
environment (for example, +config/credentials/production.yml.enc+ for the
config/credentials/#{environment}.yml.enc for the current
By default, +config.credentials.content_path+ will point to either
credentials file specified by +config.credentials.content_path+.
Returns an ActiveSupport::EncryptedConfiguration instance for the
def credentials @credentials ||= encrypted(config.credentials.content_path, key_path: config.credentials.key_path) end