lib/azeroth/request_handler/update.rb in azeroth-0.10.0 vs lib/azeroth/request_handler/update.rb in azeroth-0.10.1
- old
+ new
@@ -34,10 +34,12 @@
end
end
# @private
#
- # Update the resource, either by running update_with
+ # Update the resource
+ #
+ # This update happens by either by running update_with
# or directly updating the attributes in the object
#
# @return [Object] updated resource
def update_and_save_resource
return resource.update(attributes) unless update_with