lib/kms_encrypted/client.rb in kms_encrypted-1.2.1 vs lib/kms_encrypted/client.rb in kms_encrypted-1.2.2

- old
+ new

@@ -1,12 +1,10 @@ module KmsEncrypted class Client - delegate :encrypt, :decrypt, to: :client - attr_reader :key_id, :data_key def initialize(key_id: nil, legacy_context: false, data_key: false) - @key_id = key_id || ENV["KMS_KEY_ID"] + @key_id = key_id || KmsEncrypted.key_id @legacy_context = legacy_context @data_key = data_key end def encrypt(plaintext, context: nil)