Class: MembersPresenter

Inherits:
Gitlab::View::Presenter::Delegated show all
Includes:
Enumerable
Defined in:
app/presenters/members_presenter.rb

Instance Attribute Summary

Attributes included from Gitlab::View::Presenter::Base

#subject

Instance Method Summary collapse

Methods inherited from Gitlab::View::Presenter::Delegated

#initialize

Methods included from Gitlab::View::Presenter::Base

#can?, #declarative_policy_delegate, #is_a?, #present, #url_builder, #web_path, #web_url

Methods included from Gitlab::Allowable

#can?

Methods included from Gitlab::Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

This class inherits a constructor from Gitlab::View::Presenter::Delegated

Instance Method Details

#eachObject


12
13
14
15
16
# File 'app/presenters/members_presenter.rb', line 12

def each
  members.each do |member|
    yield member.present(current_user: current_user)
  end
end

#to_aryObject


8
9
10
# File 'app/presenters/members_presenter.rb', line 8

def to_ary
  to_a
end