lib/mongoid/kms.rb in mongoid-kms-0.0.11 vs lib/mongoid/kms.rb in mongoid-kms-0.0.12
- old
+ new
@@ -71,10 +71,10 @@
field encrypted_field_name, args.merge(type: Mongoid::Kms.bson_class::Binary)
define_method(field_name) do
instance_variable_get("@#{field_name}") || begin
- v = self.class.decrypt_field(self, field_name, send("kms_secure_#{field_name}"))
+ v = self.class.decrypt_field(self, field_name, send("kms_secure_#{field_name}"))
instance_variable_set("@#{field_name}", v)
v
end
end