Class: Users::RegistrationsController
- Inherits:
-
Devise::RegistrationsController
- Object
- Devise::RegistrationsController
- Users::RegistrationsController
- Defined in:
- app/controllers/users/registrations_controller.rb
Overview
Controller responsible to register, update and destroy users
Instance Method Summary collapse
-
#configure_account_update_params ⇒ Object
New param added: username.
-
#configure_sign_up_params ⇒ Object
New param added: username.If you have extra params to permit, append them to the sanitizer.
Instance Method Details
#configure_account_update_params ⇒ Object
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 configure_account_update_params devise_parameter_sanitizer.for(:account_update) << :username end |
#configure_sign_up_params ⇒ Object
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 configure_sign_up_params devise_parameter_sanitizer.for(:sign_up) << :username end |