Commit b4c89a3b06a20150af30a7015cef07a9c49495e9

Authored by Victor Costa
Committed by Rodrigo Souto
1 parent 8b6ad9de

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 50 expose :id, :body
51 51 expose :created_at, :format_with => :timestamp
52 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 54 expose :profile, :using => Profile
55 55 expose :categories, :using => Category
56 56 expose :parent, :using => Article
... ...