Fixed issue #47.

This commit is contained in:
Parziphal 2014-01-14 09:18:16 -05:00
parent 678b055f52
commit 5878242e32

View File

@ -162,7 +162,7 @@ class PoolController extends ApplicationController
// $this->render(['xml' => $xml]);
// },
'json' => function() {
$this->render(['json' => $this->pool->toJson()]);
$this->render(['json' => json_encode(array_merge($this->pool->asJson(), ['posts' => $this->posts->asJson()]))]);
}
]);
}