Skip to content

Commit

Permalink
Merge pull request #9 from Couchbase-Ecosystem/be_encryption_agnostic
Browse files Browse the repository at this point in the history
Update encrypt.rb
  • Loading branch information
JulienBURNET-FAUCHE authored Aug 19, 2024
2 parents 16e025b + 418b79a commit 36523d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchbase-orm/encrypt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def encode_encrypted_attributes
type = self.class.attribute_types[key.to_s]
if type.is_a?(CouchbaseOrm::Types::Encrypted)
next unless value
raise "Can not serialize value #{value} of type '#{value.class}' for Tanker encrypted attribute" unless value.is_a?(String)
raise "Can not serialize value #{value} of type '#{value.class}' for encrypted attribute" unless value.is_a?(String)
["encrypted$#{key}", {
alg: type.alg,
ciphertext: value
Expand Down

0 comments on commit 36523d2

Please sign in to comment.