Created
April 27, 2019 02:44
-
-
Save rodloboz/914338fc6c1a642e05d4ae12346d6bfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
# ... | |
before_action :configure_permitted_parameters, if: :devise_controller? | |
protected | |
def configure_permitted_parameters | |
devise_parameter_sanitizer.permit(:sign_up, keys: [:email, :password, :username, :full_name]) | |
devise_parameter_sanitizer.permit(:sign_in, keys: [:email, :password, :username]) | |
devise_parameter_sanitizer.permit(:account_update, keys: [:email, :password, :username, :full_name]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment