easy-admin-rails 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0785f402aff13dbf037ade8d523c93b2301d6aecb75e1683201e30c35f706133'
|
4
|
+
data.tar.gz: 81fea48355b3f283adad25cb54bff8f0e45c8d578352214660d5b5f9684877d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f81b31d09b749920999545be5739eaae90d2c54b5bd15775f3a90eda508fe1dc935173c1c615db07ec6149d1597e53a8d6e93f76bee3f7ca36bc536551612d35
|
7
|
+
data.tar.gz: 1a172c3721cc6deafc75383f219809609ed7ff6549471adf613ef27a2051f3f0a066382dc86e8630d1480b2536204d4ab1db5160bbcfafc1c979333ba430e8b9
|
@@ -283,9 +283,13 @@ module EasyAdmin
|
|
283
283
|
changes = {}
|
284
284
|
current_attrs = current_item.attributes
|
285
285
|
|
286
|
-
|
286
|
+
# Only check fields that exist in the old_attrs (were tracked by Paper Trail)
|
287
|
+
old_attrs.keys.each do |key|
|
287
288
|
next if %w[id updated_at].include?(key.to_s)
|
288
289
|
|
290
|
+
# Skip if field wasn't tracked in this version
|
291
|
+
next unless old_attrs.has_key?(key)
|
292
|
+
|
289
293
|
old_val = normalize_value_for_comparison(old_attrs[key])
|
290
294
|
new_val = normalize_value_for_comparison(current_attrs[key])
|
291
295
|
|
data/lib/easy_admin/version.rb
CHANGED