From 51abeaa1bc93862a4d15506a590704f9fc56cfd6 Mon Sep 17 00:00:00 2001 From: sue445 Date: Sun, 1 Mar 2015 02:07:53 +0900 Subject: Expose avatar_url in projects API * Impl Project#avatar_url * Refactor ApplicationHelper: Use Project#avatar_url * Update changelog --- lib/api/entities.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 7572104fc16..af76f3c439e 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -56,6 +56,7 @@ module API expose :issues_enabled, :merge_requests_enabled, :wiki_enabled, :snippets_enabled, :created_at, :last_activity_at expose :namespace expose :forked_from_project, using: Entities::ForkedFromProject, if: lambda{ | project, options | project.forked? } + expose :avatar_url end class ProjectMember < UserBasic -- cgit v1.2.1