debian-mirror-gitlab/app/serializers/analytics_merge_request_entity.rb

12 lines
269 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
class AnalyticsMergeRequestEntity < AnalyticsIssueEntity
2020-01-01 13:55:28 +05:30
expose :state do |object|
MergeRequest.available_states.key(object[:state_id])
end
2017-08-17 22:00:37 +05:30
expose :url do |object|
2019-10-12 21:52:04 +05:30
url_to(:namespace_project_merge_request, object)
2017-08-17 22:00:37 +05:30
end
end