From a78944d3fbb0b44570e1fc5557cfa8211a804a72 Mon Sep 17 00:00:00 2001 From: Parziphal Date: Fri, 6 Jun 2014 01:50:26 -0500 Subject: [PATCH] Fixed #90. --- app/models/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Post.php b/app/models/Post.php index 9b28273..799e611 100755 --- a/app/models/Post.php +++ b/app/models/Post.php @@ -125,7 +125,7 @@ class Post extends Rails\ActiveRecord\Base ->select("users.name, users.id") ->order("v.updated_at DESC") ->take() - ->getAttributes('id', 'name') ?: array(); + ->getAttributes(['id', 'name']) ?: array(); } }