api_me 0.5.1 → 0.5.2

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: 188a83e0e2c7f68ab3e93f6804c68036cf6c738d
4
- data.tar.gz: 883d9828de595295e29707e8370e9ec9d1066bb0
3
+ metadata.gz: 1bb083a8ae092dc1b2ddc5eb4315f5205abf99a1
4
+ data.tar.gz: 68083ea1ca7e8eb53649ee01fcdee436698bd074
5
5
  SHA512:
6
- metadata.gz: fa542c0999829d20629c9bd080b24d78a010514f58a75592613f50462f80d3cc8086671e45cf46962f9dc77d23d5dbee75c155f0f66ff78a0cb789a7b6c28a77
7
- data.tar.gz: 9489ca39cf60841d2a7b7ed8e97d3044f3f712fca08fd39861e107415fe0e400ca7e2294da12e0af7a6e303f3c477033c3dd5f9893054c79fa5f69b9df79cccd
6
+ metadata.gz: 7582d107d7106384ade98f43b4dc29c4195dc4fd9ac8a52c90b67bec936e3a1aecaef8199179a5d4c60f48d6c1c7157e68bcd0fd40e0b03a888158cf04c345f4
7
+ data.tar.gz: 2364f5da072045c31e308f3b3f3bb516fe51a1266d3d7b0f7305e3f352675bc52a7a05b12309adc1863a31d5b6609c481c12d3e9f92d43ba3da07062234b1e6c
data/lib/api_me.rb CHANGED
@@ -107,8 +107,9 @@ module ApiMe
107
107
  @object = find_resource
108
108
  authorize @object
109
109
  @object.destroy
110
-
111
110
  render status: 204, nothing: true
111
+ rescue ActiveRecord::RecordInvalid => e
112
+ handle_errors(e)
112
113
  end
113
114
 
114
115
  protected
@@ -1,3 +1,3 @@
1
1
  module ApiMe
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Clopton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-16 00:00:00.000000000 Z
12
+ date: 2016-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord