From b4c89a3b06a20150af30a7015cef07a9c49495e9 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Fri, 20 Feb 2015 12:13:51 -0300 Subject: [PATCH] api: fix article author --- lib/api/entities.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 8562f2c..63348c0 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -50,7 +50,7 @@ module API expose :id, :body expose :created_at, :format_with => :timestamp expose :title, :documentation => {:type => "String", :desc => "Title of the article"} - expose :author, :using => Profile + expose :created_by, :as => :author, :using => Profile expose :profile, :using => Profile expose :categories, :using => Category expose :parent, :using => Article -- libgit2 0.21.2