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(); } }