Skip to content

Commit 922fdca

Browse files
author
Marcel Pursche
committed
Updated documentation
1 parent 62a0354 commit 922fdca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jsonapi/utils/response/formatters.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def active_record_obj?(object)
8989
# @option options [JSONAPI::Resource] resource: it tells the builder which resource
9090
# class to be used rather than use an infered one (default behaviour)
9191
#
92-
# @option options [JSONAPI::Resource] source_resource: it tells the builder that this response is from a related resource
92+
# @option options [ActiveRecord::Base, JSONAPI::Resource] source: it tells the builder that this response is from a related resource
9393
# and the result should be interpreted as a related resources response
9494
#
95-
# @option options [String, Symbol] relationship_type: it tells that the builder which relationship the data is from
95+
# @option options [String, Symbol] relationship: it tells that the builder which relationship the data is from
9696
#
9797
# @option options [Integer] count: if it's rendering a collection of resources, the default
9898
# gem's counting method can be bypassed by the use of this options. It's shows then the total

0 commit comments

Comments
 (0)