debian-mirror-gitlab/app/controllers/concerns/members_presentation.rb
2018-03-17 18:26:18 +05:30

11 lines
249 B
Ruby

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