footprintable 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/footprintable/instance_methods.rb +2 -2
- data/lib/footprintable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0765472bbea03c6bfdb78c99346968499dd1f87616beff47599e8e93396231e1
|
4
|
+
data.tar.gz: c0df731093215dfb1e15ea3f7c60bf50b3c9887aea2477572e063e33b8f59086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb400d6288ffb0758e3606189b3ada7cb87e69ad2575a13fb8c44f8d5e0f026e873a3a1a70ceb3fd6a62b7c20b23dc05266a7eec9cbba5b7451d531556d08762
|
7
|
+
data.tar.gz: 381abf791bf2c8c9267456d53936bc8edc3ecf0c39d27ee2798f1ddebc7002e9c67190fc97ac51022652ea061e9f0d6bf10c848650e01875fc1ce31b9e5bd9ca
|
@@ -14,8 +14,8 @@ module Footprintable
|
|
14
14
|
attrs_after = {}
|
15
15
|
|
16
16
|
attrs_changed.each do |k, v|
|
17
|
-
attrs_before.store(k, v.first)
|
18
|
-
attrs_after.store(k, v.last)
|
17
|
+
attrs_before.store(k, v.first) unless v.first.nil?
|
18
|
+
attrs_after.store(k, v.last) unless v.last.nil?
|
19
19
|
end
|
20
20
|
self.footprints.model.new(before: attrs_before, after: attrs_after, action: action, trackable: self, actorable: Current.actor).save(validate: false)
|
21
21
|
end
|