draft_punk 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5bc7f64fd3b6ff6440befb21947eef669750d7f
4
- data.tar.gz: d9f32bb41953c429023818e245c986cc4259a031
3
+ metadata.gz: b4c2aca3e5f9b7e5011aba748018abc3ff2aa32f
4
+ data.tar.gz: 45acfa1318c3766274aa0bc63bd7ea6650f44993
5
5
  SHA512:
6
- metadata.gz: 9053ca90473b2fea898cbcf0f16e11de6f20557d5b462a7958ee29595e67257c7d691963a496abcaf2cccfdb040dd4089e968f78e13c60741933f90e316cf87e
7
- data.tar.gz: dd0826d9b52c0fce2e0f50ebbebeff5b5df76abb340d2b50a99f1978f1455201976123fce423e3f171c866a53d1c9472b430cd444e06d6971a80c08c4547a738
6
+ metadata.gz: e2f337e47a5865bbed32ad1e71bb04b6edc15be4b8b561b6535f1922f9d0da3e9c6fb7b087ee1e2ac9e0d438c941a2b298f10b05348e5344eb4fef974824378e
7
+ data.tar.gz: 039a98ee57ff53e83f757336d4ff6c74c54a69ff4a29c52817cf26b7e4b2f4232849218a0e04b8a899ce49a3c1056e48d75da25e84f73ce2fb9c47ca52abbc9b
@@ -119,7 +119,7 @@ module DraftPunk
119
119
  attribute_updates['updated_at'] = Time.now if reflection.klass.column_names.include?('updated_at')
120
120
  attribute_updates['approved_version_id'] = nil if reflection.klass.tracks_approved_version?
121
121
 
122
- reflection_is_has_many(reflection) ? @draft_version.send(assoc).update_all(attribute_updates) : @draft_version.send(assoc).update_attributes(attribute_updates, without_protection: true)
122
+ reflection_is_has_many(reflection) ? @draft_version.send(assoc).update_all(attribute_updates) : @draft_version.send(assoc).update_columns(attribute_updates)
123
123
  end
124
124
  end
125
125
 
@@ -1,3 +1,3 @@
1
1
  module DraftPunk
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: draft_punk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Hodges
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amoeba