Extract EE specific files/lines for Release app/serializers

This commit is contained in:
Shinya Maeda 2019-03-13 14:55:38 +07:00
parent 08491fb1ad
commit 8a7eeeffb7

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