mongoid-kms 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongoid/kms.rb +1 -1
- data/lib/mongoid/kms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94eecdfe3a08a0df7c31af9323145764e2f533ea
|
4
|
+
data.tar.gz: 987d2308b3ec07529f0fed5601bf54c7a5acebb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0921f2e89f4c22b5a82b63cdc823578b93d5ed662a95474fece209df225e89c9eadc5cace556e1b68ebb98d6cb55457ee4a5131d2aa23ff3e6c46e1e0863d738
|
7
|
+
data.tar.gz: 083bc76dbe8ae66ed2a80358da5e5db509709c7243c9e3180232d79d8d8c8cac866e395aa7d1e5db3797233b486d67c8d48df94529e9fa141bb989ddbc38152c
|
data/lib/mongoid/kms.rb
CHANGED
@@ -52,7 +52,7 @@ module Mongoid
|
|
52
52
|
# Instance methods
|
53
53
|
def set_kms_values
|
54
54
|
self.class.kms_field_map.each do |field_name, settings|
|
55
|
-
if self.send("#{field_name}_changed?") || kms_context_value_changed?(field_name)
|
55
|
+
if self.new_record? || self.send("#{field_name}_changed?") || kms_context_value_changed?(field_name)
|
56
56
|
encrypted_field_name = self.class.get_encrypted_field_name(field_name)
|
57
57
|
|
58
58
|
if instance_variable_get("@#{field_name}").nil? && kms_context_value_changed?(field_name)
|
data/lib/mongoid/kms/version.rb
CHANGED