Add some fixes

This commit is contained in:
Tomasz Maczukin 2016-01-12 18:32:18 +01:00
parent 470b3a482a
commit ab2c6cc01f
2 changed files with 1 additions and 2 deletions

View File

@ -54,7 +54,6 @@ module API
mount Keys
mount Tags
mount Triggers
mount Builds
end
end

View File

@ -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