summaryrefslogtreecommitdiff
path: root/app/controllers/groups/avatars_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/groups/avatars_controller.rb')
-rw-r--r--app/controllers/groups/avatars_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/groups/avatars_controller.rb b/app/controllers/groups/avatars_controller.rb
index 6aa64222f77..76c87366baa 100644
--- a/app/controllers/groups/avatars_controller.rb
+++ b/app/controllers/groups/avatars_controller.rb
@@ -1,8 +1,6 @@
-class Groups::AvatarsController < ApplicationController
+class Groups::AvatarsController < Groups::ApplicationController
def destroy
- @group = Group.find_by(path: params[:group_id])
@group.remove_avatar!
-
@group.save
redirect_to edit_group_path(@group)