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:
commit
05c6de9867
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue