diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-18 22:31:53 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-18 22:31:59 +0100 |
commit | 3176e298308f16acca50fc7c127f84e0dc3678ad (patch) | |
tree | 7f84c11353d084e0e0dbd59484ba95c88c66405e /app/serializers | |
parent | b1f5af40598528fbc1326946376a595d41793537 (diff) | |
download | gitlab-ce-3176e298308f16acca50fc7c127f84e0dc3678ad.tar.gz |
Expose stop_path for environment to not construct that in frontend
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/environment_entity.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/serializers/environment_entity.rb b/app/serializers/environment_entity.rb index 93534ef1b15..7e0fc9c071e 100644 --- a/app/serializers/environment_entity.rb +++ b/app/serializers/environment_entity.rb @@ -16,5 +16,12 @@ class EnvironmentEntity < Grape::Entity environment) end + expose :stop_path do |environment| + stop_namespace_project_environment_path( + environment.project.namespace, + environment.project, + environment) + end + expose :created_at, :updated_at end |