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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44a8fd537abefb919090760b049fa04af6e0863cb5cb7f1419d2d8d314e62d03
4
- data.tar.gz: 7ad3ca6f47589aad4d54b01d2200c8f1d868b0c6f51426dc7ececef1fbc82565
3
+ metadata.gz: 0765472bbea03c6bfdb78c99346968499dd1f87616beff47599e8e93396231e1
4
+ data.tar.gz: c0df731093215dfb1e15ea3f7c60bf50b3c9887aea2477572e063e33b8f59086
5
5
  SHA512:
6
- metadata.gz: 36a4b81c49ef5f69a3420dba7061c840595ee434b7dee2629cf0cd0e1b7140deecb6691603a67aacf5d9f5b8b1dc2dd1b613325f17bd125ae489d3439a1e410f
7
- data.tar.gz: d1728227d60c6c924951914976eda2d1997039867f7c247c41ce8a5e4d174b27c45e33c27f573f168f862fd412d1238c3aa052c96107fdf431563b1ea7042dc7
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)# unless v.first.nil?
18
- attrs_after.store(k, v.last)# unless v.last.nil?
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
@@ -1,3 +1,3 @@
1
1
  module Footprintable
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footprintable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - sanmu