debian-mirror-gitlab/app/serializers/merge_request_assignee_entity.rb
2019-07-31 17:26:46 +00:00

7 lines
203 B
Ruby

# frozen_string_literal: true
class MergeRequestAssigneeEntity < ::API::Entities::UserBasic
expose :can_merge do |assignee, options|
options[:merge_request]&.can_be_merged_by?(assignee)
end
end