Commit 05c6de98 authored by Yorick Peterse's avatar Yorick Peterse

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
parents 893abc4a 8a7eeeff
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment