File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,12 @@ def initialize
80
80
self . use_text_errors = false
81
81
82
82
# Whether or not to include exception backtraces in JSONAPI error
83
- # responses. Defaults to `false` in production, and `true` otherwise .
84
- self . include_backtraces_in_errors = ! Rails . env . production?
83
+ # responses. Defaults to `false` in anything other than development or test .
84
+ self . include_backtraces_in_errors = ( Rails . env . development? || Rails . env . test? )
85
85
86
86
# Whether or not to include exception application backtraces in JSONAPI error
87
- # responses. Defaults to `false` in production, and `true` otherwise .
88
- self . include_application_backtraces_in_errors = ! Rails . env . production?
87
+ # responses. Defaults to `false` in anything other than development or test .
88
+ self . include_application_backtraces_in_errors = ( Rails . env . development? || Rails . env . test? )
89
89
90
90
# List of classes that should not be rescued by the operations processor.
91
91
# For example, if you use Pundit for authorization, you might
You can’t perform that action at this time.
0 commit comments