diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-04 10:16:30 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-04 10:16:30 +0100 |
commit | a2c1178c21796933916bb44b3d6b8e4d11d89d7f (patch) | |
tree | e8f184888b66c16db9a65b0c66aab704387a00d1 /app/serializers | |
parent | f203ca5c932cc24787e1c44c5801c15923cd04ab (diff) | |
download | gitlab-ce-a2c1178c21796933916bb44b3d6b8e4d11d89d7f.tar.gz |
Expose commit author if author exists
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/commit_entity.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/commit_entity.rb b/app/serializers/commit_entity.rb index ae53de0c750..3b6c2323e3e 100644 --- a/app/serializers/commit_entity.rb +++ b/app/serializers/commit_entity.rb @@ -1,6 +1,8 @@ class CommitEntity < API::Entities::RepoCommit include RequestAwareEntity + expose :author, using: API::Entities::UserBasic + expose :commit_url do |commit| @urls.namespace_project_tree_url( @request.project.namespace, |