| 1234567891011121314151617181920 |
- # frozen_string_literal: true
- class Users::RegistrationsController < Devise::RegistrationsController
- # rubocop:disable LexicallyScopedActionFilter
- before_action :configure_sign_up_params, only: [:create]
- before_action :configure_account_update_params, only: [:update]
- # rubocop:enable LexicallyScopedActionFilter
- protected
- # If you have extra params to permit, append them to the sanitizer.
- def configure_sign_up_params
- devise_parameter_sanitizer.permit(:sign_up, keys: %i[email username])
- end
- # If you have extra params to permit, append them to the sanitizer.
- def configure_account_update_params
- devise_parameter_sanitizer.permit(:account_update, keys: %i[email username])
- end
- end
|