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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/erratum/rescuable_resource.rb +5 -3
- data/lib/erratum/verifiable_resource.rb +3 -3
- data/lib/erratum/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e6074fbcedf4fa04b17bfc9d0d6ba752d439aba
|
4
|
+
data.tar.gz: 9e1d754947525a95255e6b92f3e0f12d978b8810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
19
|
-
|
20
|
-
|
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.
|
11
|
+
model = public_send(self.class.singular_underscored_base_resource_name)
|
12
12
|
|
13
13
|
resource_not_found_error = Erratum.build(
|
14
|
-
'
|
15
|
-
resource_name: self.class.
|
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
|
)
|
data/lib/erratum/version.rb
CHANGED
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.
|
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-
|
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
|