gitlab-org--gitlab-foss/app/helpers/routing/members_helper.rb

15 lines
304 B
Ruby
Raw Normal View History

# 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