diff options
Diffstat (limited to 'app/helpers/routing/groups/members_helper.rb')
-rw-r--r-- | app/helpers/routing/groups/members_helper.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/helpers/routing/groups/members_helper.rb b/app/helpers/routing/groups/members_helper.rb new file mode 100644 index 00000000000..eabeacff1d7 --- /dev/null +++ b/app/helpers/routing/groups/members_helper.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +module Routing + module Groups + module MembersHelper + def group_members_url(group, *args) + group_group_members_url(group, *args) + end + + def group_member_path(group_member, *args) + group_group_member_path(group_member.source, group_member) + end + + def request_access_group_members_path(group, *args) + request_access_group_group_members_path(group) + end + + def leave_group_members_path(group, *args) + leave_group_group_members_path(group) + end + + def approve_access_request_group_member_path(group_member, *args) + approve_access_request_group_group_member_path(group_member.source, group_member) + end + + def resend_invite_group_member_path(group_member, *args) + resend_invite_group_group_member_path(group_member.source, group_member) + end + end + end +end |