2021-01-14 13:10:59 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MemberSerializer < BaseSerializer
|
|
|
|
entity MemberEntity
|
2021-04-15 05:09:03 -04:00
|
|
|
|
|
|
|
def represent(members, opts = {})
|
2021-06-14 08:10:13 -04:00
|
|
|
LastGroupOwnerAssigner.new(opts[:group], members).execute unless opts[:source].is_a?(Project)
|
2021-04-15 05:09:03 -04:00
|
|
|
|
|
|
|
super(members, opts)
|
|
|
|
end
|
2021-01-14 13:10:59 -05:00
|
|
|
end
|