Commit b4c89a3b06a20150af30a7015cef07a9c49495e9
Committed by
Rodrigo Souto
1 parent
8b6ad9de
Exists in
api_tasks
and in
4 other branches
api: fix article author
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/api/entities.rb
@@ -50,7 +50,7 @@ module API | @@ -50,7 +50,7 @@ module API | ||
50 | expose :id, :body | 50 | expose :id, :body |
51 | expose :created_at, :format_with => :timestamp | 51 | expose :created_at, :format_with => :timestamp |
52 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} | 52 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} |
53 | - expose :author, :using => Profile | 53 | + expose :created_by, :as => :author, :using => Profile |
54 | expose :profile, :using => Profile | 54 | expose :profile, :using => Profile |
55 | expose :categories, :using => Category | 55 | expose :categories, :using => Category |
56 | expose :parent, :using => Article | 56 | expose :parent, :using => Article |