From 6532f8183b3be95e4062d0700d0a767c01658295 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 13 Apr 2015 15:22:59 -0300 Subject: [PATCH] api: fix the return of 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 a5df120..e87cf87 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 end -- libgit2 0.21.2