From 97aea55d32d40ce4aeb465b1735d9249c3a3380e Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 14 Apr 2015 11:25:43 -0300 Subject: [PATCH] expose image for articles --- lib/noosfero/api/entities.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/noosfero/api/entities.rb b/lib/noosfero/api/entities.rb index 2254565..976db63 100644 --- a/lib/noosfero/api/entities.rb +++ b/lib/noosfero/api/entities.rb @@ -57,6 +57,7 @@ module Noosfero expose :created_by, :as => :author, :using => Profile expose :profile, :using => Profile expose :categories, :using => Category + expose :image, :using => Image end class Article < Grape::Entity @@ -69,6 +70,7 @@ module Noosfero expose :categories, :using => Category expose :parent, :using => Article expose :children, :using => ArticleChild + expose :image, :using => Image end class Comment < Grape::Entity -- libgit2 0.21.2