summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2019-03-22 13:12:51 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2019-03-22 13:12:51 +0000
commit05c6de9867f25aa5e6373d7b32d925572bdb4686 (patch)
treeb32c5236e587866dc62bb79048314b6def5f9777
parent893abc4a3d9ceaf2da4a1739746d478e02757f6c (diff)
parent8a7eeeffb75b9d1ae97084febb526d997439f2a8 (diff)
downloadgitlab-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.rb2
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