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
This commit is contained in:
Yorick Peterse 2019-03-22 13:12:51 +00:00
commit 05c6de9867

View file

@ -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