We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f9ee1a commit ec30cc1Copy full SHA for ec30cc1
lib/jsonapi_errors_handler.rb
@@ -25,7 +25,7 @@ def handle_error(error)
25
end
26
27
def handle_unexpected_error(error)
28
- return raise error unless config.handle_unexpected?
+ return raise error unless configuration.handle_unexpected?
29
log_error(error) if respond_to?(:log_error)
30
render_error(::JsonapiErrorsHandler::Errors::StandardError.new)
31
@@ -35,11 +35,10 @@ def render_error(error)
35
36
37
def self.configure(&block)
38
- config = Configuration.instance
39
- config.configure(&block)
+ Configuration.instance.configure(&block)
40
41
42
- def config
+ def configuration
43
Configuration.instance
44
45
0 commit comments