autotelik/datashift_journey

View on GitHub
app/controllers/concerns/datashift_journey/error_renderer.rb

Summary

Maintainability
A
0 mins
Test Coverage
module DatashiftJourney
  module ErrorRenderer

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

  end
end