lib/tracker_api/resources/comment.rb in tracker_api-1.12.0 vs lib/tracker_api/resources/comment.rb in tracker_api-1.13.0

- old
+ new

@@ -30,16 +30,16 @@ collection :file_attachment_ids_to_add collection :file_attachment_ids_to_remove end def save - raise ArgumentError, 'Cannot update a comment with an unknown story_id.' if story_id.nil? + raise ArgumentError, 'Cannot update a comment with an unknown story_id or epic_id.' if story_id.nil? && epic_id.nil? Endpoints::Comment.new(client).update(self, UpdateRepresenter.new(Comment.new(self.dirty_attributes))) end def delete - raise ArgumentError, 'Cannot delete a comment with an unknown story_id.' if story_id.nil? + raise ArgumentError, 'Cannot delete a comment with an unknown story_id or epic_id.' if story_id.nil? && epic_id.nil? Endpoints::Comment.new(client).delete(self) end # @param [Hash] params attributes to create the comment with