From 595b51c3bc4bc8240edb95e4d3ab853fdeaebdfa Mon Sep 17 00:00:00 2001 From: Parziphal Date: Mon, 26 May 2014 08:31:17 -0500 Subject: [PATCH] Fixed issue #78. --- 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 799e611..9b28273 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(); } }