invisible_controller 0.2 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da3fccf529bfb396a0869dd0d2a2dbb8363fdacb
|
4
|
+
data.tar.gz: 3687b1b6c7260ce2721a1402360382fda31446ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f1c4776e997f00b615fa285edfffe54e8cd306291344b07d685558adda3c3f2c9445724e5b68baa957959cb4c41873f623c70656751e4e1427a62ce5cb88f6
|
7
|
+
data.tar.gz: 087cdc8c1bbf11fd397b36150a073dab0edbc282adc2711227e97f1a67fae381fce0ca954e528c1240ffb0d7261e27513aafda836a1484a00a34215b2abb82d3
|
@@ -29,8 +29,11 @@ module InvisibleController
|
|
29
29
|
resource.save(processed_params) ? respond : respond_with_errors
|
30
30
|
end
|
31
31
|
def destroy
|
32
|
-
resource.destroy
|
33
|
-
|
32
|
+
if resource.destroy
|
33
|
+
render response: 204, nothing: true
|
34
|
+
else
|
35
|
+
render json: resource_with_errors, status: 501
|
36
|
+
end
|
34
37
|
end
|
35
38
|
|
36
39
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invisible_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|