Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/jsonapi/hanami/rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _jsonapi_render
def _jsonapi_render_success
self.format = :jsonapi if @format.nil?
return unless @_jsonapi.key?(:data)
self.body = JSONAPI::Serializable::Renderer.render(@_jsonapi[:data],
self.body = JSONAPI::Serializable::SuccessRenderer.new.render(@_jsonapi[:data],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [87/80]

_jsonapi_params)
end

Expand All @@ -42,7 +42,7 @@ def _jsonapi_exposures

def _jsonapi_render_error
document =
JSONAPI::Serializable::ErrorRenderer.render(@_jsonapi[:errors],
JSONAPI::Serializable::ErrorsRenderer.new.render(@_jsonapi[:errors],
_jsonapi_error_params)
self.status = _jsonapi_error_status unless @_status
self.format = :jsonapi if @format.nil?
Expand Down