erratum 3.1.0 → 3.1.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: a64ec04a4883f093019192fde51fd407c734c7d7
4
- data.tar.gz: f747c1132538479444c7d4d674d777d35b144d6d
3
+ metadata.gz: 2e6074fbcedf4fa04b17bfc9d0d6ba752d439aba
4
+ data.tar.gz: 9e1d754947525a95255e6b92f3e0f12d978b8810
5
5
  SHA512:
6
- metadata.gz: c2e4c60ab35531a59e889d2b3648c0b6c2b8e28080d252c47d2aee34d403baa98474d56e8ed75200a5b3fbb4154479f82f3405b726c3ca1eba252f137eac9de3
7
- data.tar.gz: f8c9aa8f46c7fc4307d5d3821c7eaa84489918b9f10cb42269f0997716474160ef3330ab0ce0386dd9b8326d7f38300c5faace01f5af7ebcbc82a76df6298c78
6
+ metadata.gz: aa962c11de842b20a25c052462df81cf3752221622993bae659d03d71b1fcfc1744377c8b39b382bbcd214cebabff4d15c71ed4f5a22968ea46be62837cca1a6
7
+ data.tar.gz: 54c7214756466a41ccdc82293c7dc9e5fc1b62e8c3a7e1eba96852f136c98cb64f575ad519014e7642b43e302b097e9de78d3121ce663600985cf49bc4ab44a9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -15,9 +15,11 @@ module RescuableResource
15
15
  'ActionController::UnpermittedParameters' do |exception|
16
16
 
17
17
  erratum = Array(
18
- Erratum.convert(exception,
19
- resource_name: self.class.singular_resource_name,
20
- action: action_name),
18
+ Erratum.build(
19
+ exception,
20
+ resource_name: self.class.singular_underscored_base_resource_name,
21
+ action: action_name,
22
+ ),
21
23
  )
22
24
 
23
25
  render json: Hash['errors' => erratum.as_json],
@@ -8,11 +8,11 @@ module VerifiableResource
8
8
  base.include ::AppleCore::ActionController::ResourceNaming
9
9
 
10
10
  base.before_action except: %i{index create} do
11
- model = public_send(self.class.singular_resource_name)
11
+ model = public_send(self.class.singular_underscored_base_resource_name)
12
12
 
13
13
  resource_not_found_error = Erratum.build(
14
- 'ResourceNotFoundError',
15
- resource_name: self.class.singular_resource_name,
14
+ 'ResourceNotFound',
15
+ resource_name: self.class.singular_underscored_base_resource_name,
16
16
  resource_id: [params[:id]],
17
17
  action: action_name,
18
18
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Erratum
4
- VERSION = '3.1.0'
4
+ VERSION = '3.1.1'
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erratum
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegranddesign
@@ -31,7 +31,7 @@ cert_chain:
31
31
  Y2GAoHKstmfIVhc4XHOPpmTd2o/C29O9oaRgjrkfQEhF/KvJ/PhoV5hvokzsCyI5
32
32
  iUeXPfvrGD/itYIBCgk+fnzyQQ4QtE5hTQaWQ3o2
33
33
  -----END CERTIFICATE-----
34
- date: 2018-04-27 00:00:00.000000000 Z
34
+ date: 2018-05-03 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: apple_core
metadata.gz.sig CHANGED
Binary file