diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-02-28 21:36:01 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-03-28 13:57:18 +0200 |
commit | 1b0b8b9c02642ac19b9f5019cdd38fcec280c2a7 (patch) | |
tree | ce4f8eba20d9f3d434cead27abb77e855b3ae237 /app/serializers | |
parent | 8ffa48098b77e1f35f9c01f6977d9ccf1d166a24 (diff) | |
download | gitlab-ce-1b0b8b9c02642ac19b9f5019cdd38fcec280c2a7.tar.gz |
Change timeout_source to enum
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/build_details_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/build_details_entity.rb b/app/serializers/build_details_entity.rb index 17769790371..0ffc537dfd8 100644 --- a/app/serializers/build_details_entity.rb +++ b/app/serializers/build_details_entity.rb @@ -7,7 +7,7 @@ class BuildDetailsEntity < JobEntity expose :timeout, if: -> (*) { !build.used_timeout.nil? } do |build| { value: build.used_timeout_human_readable, - source: build.timeout_source } + source: build.present.timeout_source } end expose :erased_by, if: -> (*) { build.erased? }, using: UserEntity |