gitlab-org--gitlab-foss/app/serializers/member_serializer.rb

12 lines
264 B
Ruby
Raw Normal View History

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