diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-14 16:16:00 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-14 16:16:00 +0300 |
commit | cb5362e7ce0496e4fa7bec4ae629fd24e93d721e (patch) | |
tree | 4375ae5e99f11d51032559a95c12f1491bcd9e1f /app/controllers/groups/group_members_controller.rb | |
parent | 0013ea5130494326f37fb1d6988a369fa2c91d22 (diff) |
Follow newline guidelines.
Diffstat (limited to 'app/controllers/groups/group_members_controller.rb')
-rw-r--r-- | app/controllers/groups/group_members_controller.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/controllers/groups/group_members_controller.rb b/app/controllers/groups/group_members_controller.rb index 359eeb4d27a..265cf4f0f4a 100644 --- a/app/controllers/groups/group_members_controller.rb +++ b/app/controllers/groups/group_members_controller.rb @@ -48,13 +48,16 @@ class Groups::GroupMembersController < Groups::ApplicationController end def resend_invite + redirect_path = group_group_members_path(@group) + @group_member = @group.group_members.find(params[:id]) + if @group_member.invite? @group_member.resend_invite - redirect_to group_group_members_path(@group), notice: 'The invitation was successfully resent.' + redirect_to redirect_path, notice: 'The invitation was successfully resent.' else - redirect_to group_group_members_path(@group), alert: 'The invitation has already been accepted.' + redirect_to redirect_path, alert: 'The invitation has already been accepted.' end end |