sinatra-backstage 0.2.0 → 0.2.1

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: 947f4e7b2f4016ed98e09fad8d85106becf578b5
4
- data.tar.gz: 6dc8daa64880d9f682f28e5ee15171a7cf072f52
3
+ metadata.gz: f38990ceed04f5e26fd59f593461786e63250a26
4
+ data.tar.gz: 7cfcc7a49f875b6e1982e6b62fd97a32ff4f5641
5
5
  SHA512:
6
- metadata.gz: bf6fdb9a38234ae6901a7e8fc7fca1b10f88dbf282fcb9189c9a38b92a6006179c18f9d2f7e0fe195a0400267f0422bb8c831a35e8a4102a5d4f73ed8307168f
7
- data.tar.gz: 4cd69a8db7d9b86c2b6551898a7ac8c60dbe80c8778e66bf82e8eb92774d83da53ab010a212f8076f21c38e5fc1d34b0b40a81dab8b93c3189663ceea34b5dca
6
+ metadata.gz: 607f0519ffec06e07ed5c777ece6d620212901beccf4eddb1ab0cc9452e387c0468fd987955e31effc27056314ad7700518c463bd84c6acab7d7c2ac36fb584d
7
+ data.tar.gz: 04ddd276294b25f50b3983ae7f3f0a30c2640c8842c3b8cfdb6e950cf45c675cc417a1656cb24894962685fde399993ac3892cc8006ffa1019ba86e31e6318f5
@@ -71,7 +71,7 @@ module Sinatra
71
71
  ### update object
72
72
  put "#{namespace}/:id" do |id|
73
73
  klass.get!(id).update params[:object]
74
- redirect namespace
74
+ redirect (display_list ? "#{namespace}/#{id}" : namespace)
75
75
  end
76
76
 
77
77
  ### delete object
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-backstage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra