diff --git a/lib/couchbase-orm/encrypt.rb b/lib/couchbase-orm/encrypt.rb index ee1c890..a6d41a3 100644 --- a/lib/couchbase-orm/encrypt.rb +++ b/lib/couchbase-orm/encrypt.rb @@ -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