gitlab-org--gitlab-foss/app/controllers/concerns/members_presentation.rb

12 lines
249 B
Ruby
Raw Normal View History

module MembersPresentation
extend ActiveSupport::Concern
def present_members(members)
Gitlab::View::Presenter::Factory.new(
members,
current_user: current_user,
presenter_class: MembersPresenter
).fabricate!
end
end