gitlab-org--gitlab-foss/app/serializers/environment_status_serializer.rb
Alessio Caiazza 4a9efc606f Move ci_environments_status to a model
GET :namespace/merge_requests/:id/ci_environments_status complexity
already reached a limit for a direct serialization from an hash
computed at within the controller function.

Here we introduce a virtual model EnvironmentStatus and its serializer.
2018-10-18 16:12:16 +02:00

5 lines
119 B
Ruby

# frozen_string_literal: true
class EnvironmentStatusSerializer < BaseSerializer
entity EnvironmentStatusEntity
end