Skip to content

Commit 6d7804b

Browse files
committed
Update outdated comment.
1 parent 6a25002 commit 6d7804b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/jsonapi-serializers/serializer.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,8 @@ def self.find_recursive_relationships(root_object, root_inclusion_tree, results,
400400
# We're finding relationships for compound documents, so skip anything that doesn't exist.
401401
next if object.nil?
402402

403-
# We only include parent values if the sential value _include is set. This satifies the
404-
# spec note: A request for comments.author should not automatically also include comments
405-
# in the response. This can happen if the client already has the comments locally, and now
406-
# wants to fetch the associated authors without fetching the comments again.
407-
# http://jsonapi.org/format/#fetching-includes
403+
# Full linkage: a request for comments.author MUST automatically include comments
404+
# in the response.
408405
objects = is_collection ? object : [object]
409406
if child_inclusion_tree[:_include] == true
410407
# Include the current level objects if the _include attribute exists.

0 commit comments

Comments
 (0)