summaryrefslogtreecommitdiff
path: root/app/controllers/profiles_controller.rb
diff options
context:
space:
mode:
authorJohann Pardanaud <pardanaud.j@gmail.com>2016-02-09 00:35:42 +0100
committerJohann Pardanaud <pardanaud.j@gmail.com>2016-02-09 22:26:50 +0100
commit6d5808801f460ed2c7bb99a316687202f2f70282 (patch)
tree379598f0aeae10b2dce417e4f166e35cff349abb /app/controllers/profiles_controller.rb
parent16abacb1f07c866e7a1f5deb6a6bc20a4eaee71c (diff)
downloadgitlab-ce-6d5808801f460ed2c7bb99a316687202f2f70282.tar.gz
Fix #7959: Fix avatar stretching by providing a cropping feature
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r--app/controllers/profiles_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb
index 28803164fcf..fa7a1148961 100644
--- a/app/controllers/profiles_controller.rb
+++ b/app/controllers/profiles_controller.rb
@@ -65,6 +65,9 @@ class ProfilesController < Profiles::ApplicationController
def user_params
params.require(:user).permit(
+ :avatar_crop_x,
+ :avatar_crop_y,
+ :avatar_crop_size,
:avatar,
:bio,
:email,