diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-11 13:11:20 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-11 13:11:20 +0000 |
commit | a15c7cb11fbf3a45492cf7cb0a04823d4321f3d5 (patch) | |
tree | 10379a7c0f053a80dc960ddfdde6555258d84d6d /core/controllers/rest.php | |
parent | ee413f5f39e1a172b48a1264b1d75b7f6986979d (diff) |
Change the PUT/DELETE tunneling param from __action to _method
to be like Rails.
Diffstat (limited to 'core/controllers/rest.php')
-rw-r--r-- | core/controllers/rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/rest.php b/core/controllers/rest.php index f307f86a..f0a2b341 100644 --- a/core/controllers/rest.php +++ b/core/controllers/rest.php @@ -74,7 +74,7 @@ abstract class REST_Controller extends Controller { return; } - switch ($this->input->post("__action")) { + switch ($this->input->post("_method")) { case "put": return $this->_put($resource); |