Skip to content

Commit

Permalink
Permit Name from authentication form
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegogagan2587 committed Oct 25, 2023
1 parent e967efc commit 7a8fd0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
class ApplicationController < ActionController::Base
before_action :configure_permitted_parameters, if: :devise_controller?

protected

def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
end
end

0 comments on commit 7a8fd0a

Please sign in to comment.