Commit b902784d authored by James Lopez's avatar James Lopez

fix reset path

parent 4c3ec579
...@@ -82,7 +82,7 @@ class GroupsController < Groups::ApplicationController ...@@ -82,7 +82,7 @@ class GroupsController < Groups::ApplicationController
if Groups::UpdateService.new(@group, current_user, group_params).execute if Groups::UpdateService.new(@group, current_user, group_params).execute
redirect_to edit_group_path(@group), notice: "Group '#{@group.name}' was successfully updated." redirect_to edit_group_path(@group), notice: "Group '#{@group.name}' was successfully updated."
else else
@group.reload @group.reset_path!
render action: "edit" render action: "edit"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment