Commit 6532f8183b3be95e4062d0700d0a767c01658295

Authored by Victor Costa
1 parent 14f2a5e8

api: fix the return of 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 end 56 end