diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-12 18:32:18 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-12 18:32:18 +0100 |
commit | ab2c6cc01ff26e07db15110e037e72159c48dc53 (patch) | |
tree | b2dedac3b06b7715ee661a14d361af03ef75774d | |
parent | 470b3a482a06c733665abcf2d92ad4d898b2efe0 (diff) | |
download | gitlab-ce-ab2c6cc01ff26e07db15110e037e72159c48dc53.tar.gz |
Add some fixes
-rw-r--r-- | lib/api/api.rb | 1 | ||||
-rw-r--r-- | lib/api/entities.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb index 266b5f48f8f..1a1340c428c 100644 --- a/lib/api/api.rb +++ b/lib/api/api.rb @@ -54,7 +54,6 @@ module API mount Keys mount Tags mount Triggers - mount Builds end end diff --git a/lib/api/entities.rb b/lib/api/entities.rb index a1a886d6fea..e19f9f8d75a 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -377,7 +377,7 @@ module API class Build < Grape::Entity expose :id, :status, :stage, :name, :ref, :tag, :coverage expose :created_at, :started_at, :finished_at - expose :user, with: UserFull + expose :user, with: User expose :download_url do |repo_obj, options| if options[:user_can_download_artifacts] repo_obj.download_url |