lib/mongoid/kms.rb in mongoid-kms-0.0.30 vs lib/mongoid/kms.rb in mongoid-kms-0.0.31

- old
+ new

@@ -151,10 +151,10 @@ def secure_field(field_name, args) encrypted_field_name = get_encrypted_field_name(field_name) create_dirty_methods field_name, field_name - before_save :set_kms_values + after_validation :set_kms_values kms_field_map[field_name.to_s] = {context: args.delete(:context), type: args[:type]} field encrypted_field_name, type: Mongoid::Kms.bson_class::Binary