debian-mirror-gitlab/app/serializers/member_serializer.rb
2021-04-29 21:17:54 +05:30

11 lines
273 B
Ruby

# frozen_string_literal: true
class MemberSerializer < BaseSerializer
entity MemberEntity
def represent(members, opts = {})
Members::LastGroupOwnerAssigner.new(opts[:group], members).execute unless opts[:source].is_a?(Project)
super(members, opts)
end
end