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: 722d059ffdb47a68b313b24c8d2f36d407faf7fc
4
- data.tar.gz: 2ea3e7ea604eb8525808862e2bb16c3292ddd716
3
+ metadata.gz: da3fccf529bfb396a0869dd0d2a2dbb8363fdacb
4
+ data.tar.gz: 3687b1b6c7260ce2721a1402360382fda31446ff
5
5
  SHA512:
6
- metadata.gz: ad31d18be96c15f5a0854bc478e488b5a58073a7d018e632aeec26ddb6693c4e77102aa76657087c83e961468240d8cc2e4749ffa989e64e4a4c1478f08c5c04
7
- data.tar.gz: 31c0d8532d535b0cb23c38be505e4dfdac09e3871701abb683a6261d2ddac7151d0e5ac1309b8fb18b7b4d8138807395ff1beb7d83b286a3ebd8ccbb7324d371
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
- render response: 204, nothing: true
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
@@ -1,3 +1,3 @@
1
1
  module InvisibleController
2
- VERSION = "0.2"
2
+ VERSION = "0.2.1"
3
3
  end
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: '0.2'
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-08-11 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails