debian-mirror-gitlab/app/controllers/concerns/members_presentation.rb

12 lines
249 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
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