delta_changes 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delta_changes.rb +1 -1
- data/lib/delta_changes/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb39ad7f3abba78ee87c76a74d4a540ee9b1c7e0
|
4
|
+
data.tar.gz: 6defc70a469dcb5be9f1ac7c66b93fabf0c2bf31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afa94e43ec507c692f8429a9579a01a307758c9f753c439c0718a779f14d31183f5f0ec4dabbcc10e1901a83cecabbf5f46e460ba45c0072658b6c569c3023c1
|
7
|
+
data.tar.gz: 7d1581feccc6d27f5f41d1b31399afe309d41a8212436103cba4e14192cc83de07f1915c8afad6aac1fa8973d76a598486305c21543cc594e6ccb6d2ee8603d4
|
data/lib/delta_changes.rb
CHANGED
@@ -110,7 +110,7 @@ module DeltaChanges
|
|
110
110
|
end
|
111
111
|
|
112
112
|
def delta_changes_field_changed?(attr, old, value)
|
113
|
-
return true if old.
|
113
|
+
return true if !old.present? && value.present?
|
114
114
|
if ActiveRecord::VERSION::STRING < '4.2.0'
|
115
115
|
_field_changed?(attr, old, value)
|
116
116
|
elsif ActiveRecord::VERSION::MAJOR < 5
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delta_changes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.5.1
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Additional real/virtual attribute change tracking independent of ActiveRecords
|