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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
264 B
Ruby
Raw Normal View History

2021-03-08 18:12:59 +05:30
# frozen_string_literal: true
class MemberSerializer < BaseSerializer
entity MemberEntity
2021-04-29 21:17:54 +05:30
def represent(members, opts = {})
2021-09-04 01:27:46 +05:30
LastGroupOwnerAssigner.new(opts[:group], members).execute unless opts[:source].is_a?(Project)
2021-04-29 21:17:54 +05:30
super(members, opts)
end
2021-03-08 18:12:59 +05:30
end