draft_punk 0.2.2 → 0.2.3
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 +2 -2
- 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: c5bc7f64fd3b6ff6440befb21947eef669750d7f
|
4
|
+
data.tar.gz: d9f32bb41953c429023818e245c986cc4259a031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9053ca90473b2fea898cbcf0f16e11de6f20557d5b462a7958ee29595e67257c7d691963a496abcaf2cccfdb040dd4089e968f78e13c60741933f90e316cf87e
|
7
|
+
data.tar.gz: dd0826d9b52c0fce2e0f50ebbebeff5b5df76abb340d2b50a99f1978f1455201976123fce423e3f171c866a53d1c9472b430cd444e06d6971a80c08c4547a738
|
@@ -92,7 +92,7 @@ module DraftPunk
|
|
92
92
|
dupe = amoeba_dup
|
93
93
|
begin
|
94
94
|
dupe.approved_version = self
|
95
|
-
dupe.save
|
95
|
+
dupe.save(validate: false)
|
96
96
|
rescue => message
|
97
97
|
raise DraftCreationError, message
|
98
98
|
end
|
@@ -105,7 +105,7 @@ module DraftPunk
|
|
105
105
|
@live_version.send("#{attribute}=", value)
|
106
106
|
end
|
107
107
|
@live_version.before_publish_draft if @live_version.respond_to?(:before_publish_draft)
|
108
|
-
@live_version.save
|
108
|
+
@live_version.save(validate: false)
|
109
109
|
end
|
110
110
|
|
111
111
|
def update_has_many_and_has_one_associations_from_draft
|
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.3
|
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-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amoeba
|