debian-mirror-gitlab/app/serializers/analytics_merge_request_entity.rb
2020-01-01 13:55:28 +05:30

11 lines
269 B
Ruby

# frozen_string_literal: true
class AnalyticsMergeRequestEntity < AnalyticsIssueEntity
expose :state do |object|
MergeRequest.available_states.key(object[:state_id])
end
expose :url do |object|
url_to(:namespace_project_merge_request, object)
end
end