2018-07-24 06:00:56 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-05 09:03:16 -05:00
|
|
|
class MembersPresenter < Gitlab::View::Presenter::Delegated
|
|
|
|
include Enumerable
|
|
|
|
|
2021-09-21 05:12:21 -04:00
|
|
|
presents nil, as: :members
|
2017-12-05 09:03:16 -05:00
|
|
|
|
|
|
|
def to_ary
|
|
|
|
to_a
|
|
|
|
end
|
|
|
|
|
|
|
|
def each
|
|
|
|
members.each do |member|
|
|
|
|
yield member.present(current_user: current_user)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|