Skip to content

Commit e3b604b

Browse files
johvetTate Thurston
authored andcommitted
Return a nil pointer rather than a blank
1 parent dbc6469 commit e3b604b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi/active_model_error_serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ActiveModelErrorSerializer < ErrorSerializer
5252
elsif error_key == :base
5353
{ pointer: "/data" }
5454
else
55-
{ pointer: '' }
55+
{ pointer: nil }
5656
end
5757
end
5858
end

0 commit comments

Comments
 (0)