documentation-editor 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb8a6c6833eaed1c24ede4d86051661839774994
4
- data.tar.gz: 58e3ebcf7eefa9dbcd0a8974ffb42fed2c99d047
3
+ metadata.gz: 3007f19797e61c5962a2440b249f0a8798713627
4
+ data.tar.gz: 07de5a5ebba5df49d5d60b263ff76d3eac4c578d
5
5
  SHA512:
6
- metadata.gz: 97d9cbf271ae8028e499750c994f33c289d7216caec19cfdb6ebb1b86709352d2f7f6aa9e1f9824f369f9b7f3b443215152833557f7b53737b5dc07f2fb790c9
7
- data.tar.gz: 799c91288dfbefdf2fe156a87c21c90ce72a6a476d142ec79e92cc66bea8e1c9f4b766a3d90f0cb438914b81e8840fa6a1204885e9967e6a6ca33eb225aa6041
6
+ metadata.gz: 1f4808b970c0879917b69496324639b57e2d19d09e3b904a475d3a508b6807ed6c509d9a08abfd5af8a26d690775209bd993182eff442bd2fc540ee017e24c1d
7
+ data.tar.gz: e13af8a269c3f11202d1575e60a667218f77e36114803dea59efd51d052342e7d0b566163526d875f2b8827cb0ccda9e483b83a137ec79fd48756804e8cee5d0
@@ -11,7 +11,10 @@ module DocumentationEditor
11
11
  r.author_id = author_id
12
12
  r.content = content
13
13
  r.save!
14
- update_attributes(published_revision_id: r.id) if publish
14
+ if publish
15
+ self.published_revision_id = r.id
16
+ save!
17
+ end
15
18
  r
16
19
  end
17
20
 
@@ -1,3 +1,3 @@
1
1
  module DocumentationEditor
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentation-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia Team