From b5f48e4ab377e81d295226fe2eb51bfe9f023fe5 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 14 Nov 2008 07:30:47 +0000 Subject: Use the shortform to load the resource. --- core/controllers/rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers/rest.php') diff --git a/core/controllers/rest.php b/core/controllers/rest.php index f0a2b341..ff4d5120 100644 --- a/core/controllers/rest.php +++ b/core/controllers/rest.php @@ -55,7 +55,7 @@ abstract class REST_Controller extends Controller { } // @todo this needs security checks - $resource = ORM::factory($this->resource_type)->where("id", $id)->find(); + $resource = ORM::factory($this->resource_type, $id); if (!$resource->loaded) { return Kohana::show_404(); } -- cgit v1.2.3