Module: Routing::MembersHelper

Included in:
GitlabRoutingHelper
Defined in:
app/helpers/routing/members_helper.rb

Instance Method Summary collapse

Instance Method Details

#source_members_url(member) ⇒ Object


5
6
7
8
9
10
11
12
# File 'app/helpers/routing/members_helper.rb', line 5

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