summaryrefslogtreecommitdiff
path: root/app/helpers/routing/members_helper.rb
blob: 18f6d06ab3b6395d608c6f964197ff14ffdd8bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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