Module: DatashiftJourney::ErrorRenderer

Included in:
FormsController
Defined in:
app/controllers/concerns/datashift_journey/error_renderer.rb

Instance Method Summary collapse

Instance Method Details

#render_error(resource, status) ⇒ Object



4
5
6
# File 'app/controllers/concerns/datashift_journey/error_renderer.rb', line 4

def render_error(resource, status)
  render json: resource, status: status, adapter: :json_api, serializer: ActiveModel::Serializer::ErrorSerializer
end