summaryrefslogtreecommitdiff
path: root/app/serializers/member_serializer.rb
blob: ad258b0ef1e9721e635ab85079dd0c01b815f871 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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