Notifying an admin when new user register with Devise

I would like to set the option to receive an email notification wherever new user register. My thoughts was to add to the User model something like after_create :send_email_to_admin Is it any pre-build way in Devise to do it?

Posted over 4 years ago by Oxana
Posted over 4 years ago by Alex Yang

I don't think there's a Devise-specific way to do it. The 'after_create' approach is probably your best bet - this will allow you to customize what happens whenever a new User is added to your database.

1