method

credentials

rails latest stable - Class: Rails::Generators::CredentialsGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

credentials()
private

No documentation available.

# File railties/lib/rails/generators/rails/credentials/credentials_generator.rb, line 35
        def credentials
          ActiveSupport::EncryptedConfiguration.new(
            config_path: "config/credentials.yml.enc",
            key_path: "config/master.key",
            env_key: "RAILS_MASTER_KEY",
            raise_if_missing_key: true
          )
        end