Class: Users::RegistrationsController

Inherits:
Devise::RegistrationsController
  • Object
show all
Defined in:
app/controllers/users/registrations_controller.rb

Overview

Controller responsible to register, update and destroy users

Instance Method Summary collapse

Instance Method Details

#configure_account_update_paramsObject

New param added: username. If you have extra params to permit, append them to the sanitizer.



48
49
50
# File 'app/controllers/users/registrations_controller.rb', line 48

def 
  devise_parameter_sanitizer.for(:account_update) << :username
end

#configure_sign_up_paramsObject

New param added: username.If you have extra params to permit, append them to the sanitizer.



43
44
45
# File 'app/controllers/users/registrations_controller.rb', line 43

def 
  devise_parameter_sanitizer.for(:sign_up) << :username
end