draft_punk 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activerecord_instance_methods.rb +1 -1
- data/lib/draft_punk/version.rb +1 -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: b4c2aca3e5f9b7e5011aba748018abc3ff2aa32f
|
4
|
+
data.tar.gz: 45acfa1318c3766274aa0bc63bd7ea6650f44993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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).
|
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
|
|
data/lib/draft_punk/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amoeba
|