Fix devise error

This commit is contained in:
Wedge 2017-07-30 00:45:02 +03:00
parent 0317955082
commit ccd136a880
1 changed files with 2 additions and 4 deletions

View File

@ -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
end