diff options
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r-- | app/controllers/profiles_controller.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index 6cc602fec88..29ae268ef67 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -103,8 +103,8 @@ class ProfilesController < Profiles::ApplicationController @username_param ||= user_params.require(:username) end - def user_params - @user_params ||= params.require(:user).permit( + def user_params_attributes + [ :avatar, :bio, :email, @@ -130,6 +130,12 @@ class ProfilesController < Profiles::ApplicationController :pronouns, :pronunciation, status: [:emoji, :message, :availability] - ) + ] + end + + def user_params + @user_params ||= params.require(:user).permit(user_params_attributes) end end + +ProfilesController.prepend_mod |