diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-22 13:12:51 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-22 13:12:51 +0000 |
commit | 05c6de9867f25aa5e6373d7b32d925572bdb4686 (patch) | |
tree | b32c5236e587866dc62bb79048314b6def5f9777 | |
parent | 893abc4a3d9ceaf2da4a1739746d478e02757f6c (diff) | |
parent | 8a7eeeffb75b9d1ae97084febb526d997439f2a8 (diff) | |
download | gitlab-ce-05c6de9867f25aa5e6373d7b32d925572bdb4686.tar.gz |
Merge branch 'ce-extract-ee-specific-lines-environment-entity' into 'master'
Extract EE specific files/lines for Release app/serializers
See merge request gitlab-org/gitlab-ce!26087
-rw-r--r-- | app/serializers/environment_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/environment_entity.rb b/app/serializers/environment_entity.rb index 76248e6470e..8258135da4e 100644 --- a/app/serializers/environment_entity.rb +++ b/app/serializers/environment_entity.rb @@ -12,7 +12,7 @@ class EnvironmentEntity < Grape::Entity expose :last_deployment, using: DeploymentEntity expose :stop_action_available?, as: :has_stop_action - expose :metrics_path, if: -> (environment, _) { environment.has_metrics? } do |environment| + expose :metrics_path, if: -> (*) { environment.has_metrics? } do |environment| metrics_project_environment_path(environment.project, environment) end |