challah 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/challah/audit.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07cf70b1d4f4fe8cdfe785486b5864e90bc7f1f8
|
4
|
+
data.tar.gz: d88604a025baf60b9284b957fa61151eb733c7ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72d5615ce473dbbb4184b68a7e6a7b083e6f1d14d36cdb86590f325f7d9e4ee18294a9c8ac5f392f6374a8c68820b154697ff7e4b0881cb0e577f643f272f91b
|
7
|
+
data.tar.gz: b0e24a5cf9082dc68b275b8a3f1a62422a149ce441362cd29b2ae4bb6a4cb748215c814ec202a26fd94a5068692c69973bea3b291a30ac7ac5b7d74754871a87
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.3
|
data/lib/challah/audit.rb
CHANGED
@@ -95,8 +95,14 @@ module Challah
|
|
95
95
|
if respond_to?(attribute_name) && respond_to?("#{ attribute_name }=")
|
96
96
|
write_attribute(attribute_name, nil)
|
97
97
|
end
|
98
|
+
end
|
99
|
+
|
100
|
+
@changed_attributes = changed_attributes.reduce(ActiveSupport::HashWithIndifferentAccess.new) do |result, (key, value)|
|
101
|
+
unless all_audit_attributes.include?(key.to_sym)
|
102
|
+
result[key] = value
|
103
|
+
end
|
98
104
|
|
99
|
-
|
105
|
+
result
|
100
106
|
end
|
101
107
|
end
|
102
108
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: challah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Tornow
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: highline
|