summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-02-28 16:48:39 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-06 10:04:04 +0100
commitbe039d22d71afa7c8b2635cd8820b8b4566d15b8 (patch)
tree2bbd17d43614ae93ed5bca9cb901fb788ce33b37 /app/serializers
parent6cc02e084f96d7d3cb56870cbe545c67e6a564bb (diff)
downloadgitlab-ce-be039d22d71afa7c8b2635cd8820b8b4566d15b8.tar.gz
Make manual actions blocking
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/build_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/build_entity.rb b/app/serializers/build_entity.rb
index b5384e6462b..5bcbe285052 100644
--- a/app/serializers/build_entity.rb
+++ b/app/serializers/build_entity.rb
@@ -12,7 +12,7 @@ class BuildEntity < Grape::Entity
path_to(:retry_namespace_project_build, build)
end
- expose :play_path, if: ->(build, _) { build.manual? } do |build|
+ expose :play_path, if: ->(build, _) { build.playable? } do |build|
path_to(:play_namespace_project_build, build)
end