We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4b0aee commit 07846a6Copy full SHA for 07846a6
1 file changed
lib/jsonapi_compliable/resource.rb
@@ -487,7 +487,7 @@ def create(create_params)
487
# @see .model
488
# @see Adapters::ActiveRecord#update
489
# @param [Hash] update_params The relevant attributes, including id and foreign keys
490
- # @return [Object] an instance of the just-created model
+ # @return [Object] an instance of the just-updated model
491
def update(update_params)
492
adapter.update(model, update_params)
493
end
@@ -507,7 +507,7 @@ def update(update_params)
507
508
# @see Adapters::ActiveRecord#destroy
509
# @param [String] id The +id+ of the relevant Model
510
+ # @return [Object] an instance of the just-destroyed model
511
def destroy(id)
512
adapter.destroy(model, id)
513
0 commit comments