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

- old
+ new

@@ -1,8 +1,8 @@ module KmsEncrypted module Model def has_kms_key(name: nil, key_id: nil, eager_encrypt: false, version: 1, previous_versions: nil, upgrade_context: false) - key_id ||= ENV["KMS_KEY_ID"] + key_id ||= KmsEncrypted.key_id key_method = name ? "kms_key_#{name}" : "kms_key" key_column = "encrypted_#{key_method}" context_method = name ? "kms_encryption_context_#{name}" : "kms_encryption_context"