loggable_activity 0.1.58 → 0.1.59
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db2b65fd9476234eb90900437f005f9a84b9e29c1acb514236a8b24346278b17
|
4
|
+
data.tar.gz: ef3113633c4c9b101e119d829213ee00c345af95700d112d800a06232fa442d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea6c0068987ae337395230e9147b7be7bbbedb10fc488dfad2c901bf5b590a51024333141fa350e7007e8c50ce8a453962770ee4e9cce8b5fb8f9ccc03d8b63a
|
7
|
+
data.tar.gz: 73f5b8a7bca8f87907be31b4e4bc378a0a0caa34fa774c1ba21f2aa39da5733b56827e780be3460ed4415d5f2cb92e03a5a8c47919ac5df6f439cf1ed4331e19
|
Binary file
|
@@ -16,7 +16,8 @@ module LoggableActivity
|
|
16
16
|
# Builds the primary payload.
|
17
17
|
def build_primary_update_payload
|
18
18
|
previous_values, current_values = saved_changes(@record)
|
19
|
-
previous_values.slice(*@loggable_attrs)
|
19
|
+
previous_values = previous_values.slice(*@loggable_attrs)
|
20
|
+
current_values = current_values.slice(*@loggable_attrs)
|
20
21
|
options = { related_to_activity_as: 'primary_update_payload', current_payload: true, data_owner: true }
|
21
22
|
|
22
23
|
build_encrypted_update_payload(
|
@@ -122,6 +123,7 @@ module LoggableActivity
|
|
122
123
|
return if previous_values == current_values
|
123
124
|
|
124
125
|
previous_values = previous_values.slice(*loggable_attrs)
|
126
|
+
current_values = current_values.slice(*loggable_attrs)
|
125
127
|
data_owner = relation_config['data_owner']
|
126
128
|
options = { related_to_activity_as: 'has_one_update_payload', current_payload: true, data_owner: }
|
127
129
|
|