Skip to content

Commit 07846a6

Browse files
stevenharmanrichmolj
authored andcommitted
Fix docs for update/destroy (#67)
Looks like some copy-pasta for the return values of `update` and `destroy`.
1 parent e4b0aee commit 07846a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jsonapi_compliable/resource.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def create(create_params)
487487
# @see .model
488488
# @see Adapters::ActiveRecord#update
489489
# @param [Hash] update_params The relevant attributes, including id and foreign keys
490-
# @return [Object] an instance of the just-created model
490+
# @return [Object] an instance of the just-updated model
491491
def update(update_params)
492492
adapter.update(model, update_params)
493493
end
@@ -507,7 +507,7 @@ def update(update_params)
507507
# @see .model
508508
# @see Adapters::ActiveRecord#destroy
509509
# @param [String] id The +id+ of the relevant Model
510-
# @return [Object] an instance of the just-created model
510+
# @return [Object] an instance of the just-destroyed model
511511
def destroy(id)
512512
adapter.destroy(model, id)
513513
end

0 commit comments

Comments
 (0)