api_me 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api_me.rb +1 -0
- data/lib/api_me/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6b29b1a465714cdcc7feedeebd6c5d33f1a5372570d12a15aa34bcd703abea5
|
4
|
+
data.tar.gz: d6508859d1824d21da8317575310a7b86d449a4b8de223bf50d9fa10dafbc03f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39e6b061f1f38eeb5c78b686a9ff0fca4c41abaa45d065f02b85790ea5ac0ce8133d948cc15d375a21ca4db7c1ac570125b0b8f57c0a50a16aee568a70714ae9
|
7
|
+
data.tar.gz: 9f0909bbc887578ed2caea5c5924ddb6671b754bed90e059f502f582355e71b4fbca5440218b96e8ec04c2b2f6ea7ded6e35b3ce3aae340baa437b857d83b7a1
|
data/lib/api_me.rb
CHANGED
@@ -165,6 +165,7 @@ module ApiMe
|
|
165
165
|
Rails.logger.debug "ERROR: #{active_record_error}"
|
166
166
|
render_errors(active_record_error.record.errors.messages)
|
167
167
|
end
|
168
|
+
alias handle_errors handle_active_record_errors
|
168
169
|
|
169
170
|
def user_not_authorized
|
170
171
|
payload = { message: "User is not allowed to access #{params[:action]} on this resource" }
|
data/lib/api_me/version.rb
CHANGED
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.10.
|
4
|
+
version: 0.10.3
|
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: 2018-12-
|
12
|
+
date: 2018-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|