jsonapi_errors_handler 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/jsonapi_errors_handler.rb +3 -4
- data/lib/jsonapi_errors_handler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acb7e97c1a569c15c24d4aed0a05c4ef6e899e6f0ed1d58cd6fa8710bfae094f
|
4
|
+
data.tar.gz: b199c617b64f14bb4a4bf88524649218258a4d7f5509f86c42a16045083959f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a07647fdb49aff63686c16bb01e1613581dc3442c3e282defedd7712755090981ea628dfc60c8b46eb99287d49dae54989307fde3630107d274da107d71aea5
|
7
|
+
data.tar.gz: c2b45e1789b4708dfb22d39a368c0e7a61b5290d1de02fc3c1e5c1c1acba8c90836b3caccc3c9aff65e2e61c13a37f08c4691d95ff1d9043e9c8e422c60e1226
|
data/Gemfile.lock
CHANGED
@@ -25,7 +25,7 @@ module JsonapiErrorsHandler
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def handle_unexpected_error(error)
|
28
|
-
return raise error unless
|
28
|
+
return raise error unless configuration.handle_unexpected?
|
29
29
|
log_error(error) if respond_to?(:log_error)
|
30
30
|
render_error(::JsonapiErrorsHandler::Errors::StandardError.new)
|
31
31
|
end
|
@@ -35,11 +35,10 @@ module JsonapiErrorsHandler
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def self.configure(&block)
|
38
|
-
|
39
|
-
config.configure(&block)
|
38
|
+
Configuration.instance.configure(&block)
|
40
39
|
end
|
41
40
|
|
42
|
-
def
|
41
|
+
def configuration
|
43
42
|
Configuration.instance
|
44
43
|
end
|
45
44
|
end
|