class ViewModel::ErrorView
ViewModel
for rendering ViewModel::AbstractErrors
Public Instance Methods
serialize_exception(json, serialize_context:)
click to toggle source
Ruby exceptions should never be serialized in production
Calls superclass method
# File lib/view_model/error_view.rb, line 29 def serialize_exception(json, serialize_context:) if ViewModel::Config.show_cause_in_error_view super else json.exception nil end end