Sha256: 98e57528bc2d13b60fef8b803cc108571b6518f5f2ba6824ba4529c576be3217

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module PG
  module AWS_RDS_IAM
    module ActiveRecordPostgreSQLDatabaseTasks
      private

      def set_psql_env
        super
        hash = respond_to?(:configuration_hash, true) ? configuration_hash : configuration.symbolize_keys
        AuthTokenInjector.new.inject_into_psql_env! hash, ENV
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg-aws_rds_iam-0.4.2 lib/pg/aws_rds_iam/active_record_postgresql_database_tasks/set_psql_env.rb
pg-aws_rds_iam-0.4.1 lib/pg/aws_rds_iam/active_record_postgresql_database_tasks/set_psql_env.rb