Skip to content

Instantly share code, notes, and snippets.

@Gowiem
Created June 3, 2017 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gowiem/7a01eccacfe107bcd9494aeb005f46ca to your computer and use it in GitHub Desktop.
Save Gowiem/7a01eccacfe107bcd9494aeb005f46ca to your computer and use it in GitHub Desktop.
# backend/app/controllers/users_invitations_controller.rb
class UsersInvitationsController < Devise::InvitationsController
before_action :configure_permitted_parameters
# ...
private
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:accept_invitation, keys: [:first_name, :last_name])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment