easy-admin-rails 0.1.12 → 0.1.13
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: 8d4b94ae313746eb609f463d8619257aac914b00204f9fccb934c8a83cbbba2d
|
4
|
+
data.tar.gz: 3d5165ff34936522ee840039050fd15b740c47395b45f8b4276473cd24c9d0d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13f097fbf6b65704d148e394c4c36a87192ffb1c163eda942751cefe8808aa3179ab6024ff79e489c9b0dcf5fa41067990501843690c60d16b6a18af6a0b2f73
|
7
|
+
data.tar.gz: bc610d094b4c1c1aa73ec20b572e49ba1935b46903b4ea25d6608c68f5ee201cb54034101595fb9284252d712eae2ca86cf7f24923c837953fac8d34ea3206bb
|
@@ -278,10 +278,13 @@ module EasyAdmin
|
|
278
278
|
changes = {}
|
279
279
|
current_attrs = current_item.attributes
|
280
280
|
|
281
|
-
#
|
282
|
-
|
281
|
+
# Only check fields that exist in the old_attrs (were tracked by Paper Trail)
|
282
|
+
old_attrs.keys.each do |key|
|
283
283
|
next if skip_field?(key)
|
284
284
|
|
285
|
+
# Skip if field wasn't tracked in this version
|
286
|
+
next unless old_attrs.has_key?(key)
|
287
|
+
|
285
288
|
old_val = normalize_value_for_comparison(old_attrs[key])
|
286
289
|
new_val = normalize_value_for_comparison(current_attrs[key])
|
287
290
|
|
data/lib/easy_admin/version.rb
CHANGED