Created
November 22, 2013 18:29
-
-
Save felippemr/7604646 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
before_filter :update_sanitized_params, if: :devise_controller? | |
def update_sanitized_params | |
devise_parameter_sanitizer.for(:sign_up) {|u| u.permit(:name,:email, :password, :password_confirmation)} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment