* Added test for rest::request_method().

* Implemented delete in comment.
This commit is contained in:
Jozef Selesi
2008-11-22 01:31:15 +00:00
parent 01c8cdc8dd
commit bb53a0b99f
2 changed files with 39 additions and 1 deletions

View File

@@ -103,7 +103,8 @@ class Comments_Controller extends REST_Controller {
* @see Rest_Controller::_delete($resource)
*/
public function _delete($comment) {
rest::http_status(rest::METHOD_NOT_ALLOWED);
$comment->delete();
rest::http_status(rest::OK);
}
/**