artifact 0.2.4 → 0.2.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: bb0052b2b174a43ea767316955787150c36da6b8
4
- data.tar.gz: 186fac9eb7e7342d2b5135a0aeae4c3dcb65f989
3
+ metadata.gz: 57a73759ba269d88aebc5168b29937b46d64a914
4
+ data.tar.gz: 1b5d2db30d994a5993e72c2c0f2b0c757a663e5d
5
5
  SHA512:
6
- metadata.gz: 7e086586d42ff8080d11641f96cf1239a0467af5742de62b7337967fe8d717c22047b2fe6bb00e4d6399e69bd24b430de375ed98843007325ae00595eedad0cc
7
- data.tar.gz: 95bbc0c6e904191000ded69546f110a15873796d45ca558858c83bbb7968aa00c12d7793112d1e8e09de10b39d8c9dcd2160c6b79ea899c8d4bacbcacead7162
6
+ metadata.gz: 32eb6801185f993154108e3c29ef3d26f97aaf10644e5a122e08026f94d2e6240dced072b06c28bb2644f6d695bd309f7ad9b1f6ad2d737d938b47e00ac76a58
7
+ data.tar.gz: 77c5a49ee35c8c32545437b3316954837a01f9da87b53483590158a1e8b014c619cd16540a84c2b75c9ad67772e5aee1cf53227982bba60c366f0adbd34e22e8
@@ -128,6 +128,8 @@ module Artifact
128
128
  publish_post!(@post)
129
129
  elsif params[:save] == 'Unpublish'
130
130
  unpublish_post!(@post)
131
+ else
132
+ @just_saved = true
131
133
  end
132
134
  end
133
135
 
@@ -136,7 +138,7 @@ module Artifact
136
138
  if request.xhr?
137
139
  "OK"
138
140
  else
139
- redirect back
141
+ redirect @just_saved ? back : to('/posts')
140
142
  end
141
143
  end
142
144
 
@@ -1,3 +1,3 @@
1
1
  module Artifact
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artifact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomás Pollak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler