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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6657f0351e5c79bfb0c927436fcd4f9f26be8cc93e384429a1e3bd8e18bea1c
4
- data.tar.gz: ba9d1e17654d46b38f6b35c5a3aa1e3f9bb2a73211ed7f4043840090f901cfe6
3
+ metadata.gz: f6b29b1a465714cdcc7feedeebd6c5d33f1a5372570d12a15aa34bcd703abea5
4
+ data.tar.gz: d6508859d1824d21da8317575310a7b86d449a4b8de223bf50d9fa10dafbc03f
5
5
  SHA512:
6
- metadata.gz: d889833b28bea829737d3c19f1faf670df9170b7ad5dcb9c39d4cf0c3a44c21ecc3654b975776cac9dcfda22296b96e6d5d7c0edccd7ba4b4ec9afdf68807c35
7
- data.tar.gz: e59cd90e4ffbe7aa7ebdc5b31c947278f5bd8ce1d360cd0a54c46cdf14d058342fe619a755dd05bde96eb833461d6bfeb7933ed59e2bd2d691ced19268b3f3e8
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" }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiMe
4
- VERSION = '0.10.2'
4
+ VERSION = '0.10.3'
5
5
  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.10.2
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-11 00:00:00.000000000 Z
12
+ date: 2018-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails