fix reset path

This commit is contained in:
James Lopez 2016-12-21 14:21:18 +01:00
parent 4c3ec579e5
commit b902784dbf

View file

@ -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