diff options
author | Steven Thonus <steven@ln2.nl> | 2014-01-27 22:34:05 +0100 |
---|---|---|
committer | Steven Thonus <steven@ln2.nl> | 2014-01-28 08:38:00 +0100 |
commit | 251df827a5308d483a95242970569075ab655703 (patch) | |
tree | 00872b5ebaf24ca6c4e964172f59a8380c55d096 /app/controllers/groups/avatars_controller.rb | |
parent | 5221dbfee74e48f379bc06b2848a64243a76270c (diff) | |
download | gitlab-ce-251df827a5308d483a95242970569075ab655703.tar.gz |
added group avatars
Diffstat (limited to 'app/controllers/groups/avatars_controller.rb')
-rw-r--r-- | app/controllers/groups/avatars_controller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/groups/avatars_controller.rb b/app/controllers/groups/avatars_controller.rb new file mode 100644 index 00000000000..38071410f40 --- /dev/null +++ b/app/controllers/groups/avatars_controller.rb @@ -0,0 +1,12 @@ +class Groups::AvatarsController < ApplicationController + layout "profile" + + def destroy + @group = Group.find_by(path: params[:group_id]) + @group.remove_avatar! + + @group.save + + redirect_to edit_group_path(@group) + end +end |