challah 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/challah/audit.rb +7 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fd8421c09bbcadbd9825d4949ef5970b78e3fbb
4
- data.tar.gz: 877418788b8afd7f65e4171861e826f3d51176e7
3
+ metadata.gz: 07cf70b1d4f4fe8cdfe785486b5864e90bc7f1f8
4
+ data.tar.gz: d88604a025baf60b9284b957fa61151eb733c7ad
5
5
  SHA512:
6
- metadata.gz: 457397586eec8ed9ddcebd814361998ccc3ecec7bb60c15401d1c895e5b8e38dd5e33cc3d9395e221a1932bd23e9d12d1d991566fc377013469526e4d115ca34
7
- data.tar.gz: 8d1367a02de4f6f09e9498db223404827d5f47b8f0cb4555f88d657a89437035f17911104b634a7d0213cd09beb523ccc10b6c88a4172627021cfcb1b7b4165a
6
+ metadata.gz: 72d5615ce473dbbb4184b68a7e6a7b083e6f1d14d36cdb86590f325f7d9e4ee18294a9c8ac5f392f6374a8c68820b154697ff7e4b0881cb0e577f643f272f91b
7
+ data.tar.gz: b0e24a5cf9082dc68b275b8a3f1a62422a149ce441362cd29b2ae4bb6a4cb748215c814ec202a26fd94a5068692c69973bea3b291a30ac7ac5b7d74754871a87
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
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
- changed_attributes.delete(attribute_name)
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.2
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-04-26 00:00:00.000000000 Z
13
+ date: 2016-06-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline