fix reset path
This commit is contained in:
parent
4c3ec579e5
commit
b902784dbf
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class GroupsController < Groups::ApplicationController
|
|||
if Groups::UpdateService.new(@group, current_user, group_params).execute
|
||||
redirect_to edit_group_path(@group), notice: "Group '#{@group.name}' was successfully updated."
|
||||
else
|
||||
@group.reload
|
||||
@group.reset_path!
|
||||
|
||||
render action: "edit"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue