debian-mirror-gitlab/app/helpers/routing/members_helper.rb
2021-09-30 23:02:18 +05:30

14 lines
304 B
Ruby

# 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