Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-09-14 11:15:54 +0300
committerValery Sizov <vsv2711@gmail.com>2015-09-14 11:15:54 +0300
commitad5d2c3e78e56cb00f608020d1b3a7980f4ac6f4 (patch)
tree68758c64a4ee799f1e55f5455aa095d13164627d /lib
parent77bda265f47763e78ef0a3d4c0e8893e9ecfda69 (diff)
fix of API
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/api/entities.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ci/api/entities.rb b/lib/ci/api/entities.rb
index 2f0e9d36bc4..f5e601d4016 100644
--- a/lib/ci/api/entities.rb
+++ b/lib/ci/api/entities.rb
@@ -12,8 +12,12 @@ module Ci
end
class Build < Grape::Entity
- expose :id, :commands, :path, :ref, :sha, :project_id, :repo_url,
- :before_sha, :timeout, :allow_git_fetch, :project_name, :options
+ expose :id, :commands, :ref, :sha, :project_id, :repo_url,
+ :before_sha, :allow_git_fetch, :project_name, :options
+
+ expose :timeout do |model|
+ model.timeout
+ end
expose :variables
end