debian-mirror-gitlab/app/helpers/routing/members_helper.rb

15 lines
304 B
Ruby
Raw Normal View History

2021-09-30 23:02:18 +05:30
# frozen_string_literal: true
module Routing
module MembersHelper
def source_members_url(member)
case member.source_type
when 'Namespace'
group_group_members_url(member.source)
when 'Project'
project_project_members_url(member.source)
end
end
end
end