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: cff58e24500b585a0346cd5da70625a6197c4445fff7c17200d35f9f71c32f95
4
- data.tar.gz: 48e3480d8a897c2fb5381304de2876b89a1cfa3f9426c2415aa35f7c64aca6e1
3
+ metadata.gz: '0785f402aff13dbf037ade8d523c93b2301d6aecb75e1683201e30c35f706133'
4
+ data.tar.gz: 81fea48355b3f283adad25cb54bff8f0e45c8d578352214660d5b5f9684877d9
5
5
  SHA512:
6
- metadata.gz: 0cb57146ae144a8b4292a1ac4de928476e3df92997c230471edea4af021d67d4074900202402e45836e4f4e85540a72caf053c0b1230f113e09898131f60a0f5
7
- data.tar.gz: 96a1ca2a86f51334744e5b6e980f6c814d8b860e38a5b074505cb3c10eee11cf203320d9324b7619f6d5e8ca04400d7fbfab0097df463c75e966d541fba0dda4
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
- (old_attrs.keys + current_attrs.keys).uniq.each do |key|
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
 
@@ -1,3 +1,3 @@
1
1
  module EasyAdmin
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-admin-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slaurmagan