diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index 8bdf6807f..b288c950e 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -15,9 +15,7 @@ class Users::RegistrationsController < Devise::RegistrationsController protected def update_sanitized_params - devise_parameter_sanitizer.for(:sign_up) do |u| - u.permit(:uname, :name, :email, :password, :password_confirmation) - end + devise_parameter_sanitizer.permit(:sign_up, keys: [:uname, :name, :email, :password, :password_confirmation]) end -end \ No newline at end of file +end