Category :

Published on :Jul 14, 2017

So you integrated devise in your app and need your email signups to confirm. You setup devise and enabled confirmable module and things were going great.

One day your manager comes to you all excited about having social logins(Facebook, twitter, linkedin) and you no longer need them to confirm. Or it may be that your application now has email invitation feature and it would be stupid to ask the user you just invited via email to confirm their email.

It is now time to skip confirmation mail.

For this you will have to detect the mechanism by which user is being created and If it is among above two cases you can add one more line user.skip_confirmation! before saving the user.

user =

Did this work for you? Do you have some more edge case related to this? Feel free to share in the comments below.

Happy Coding!



Interested In Working Together ?

Over 8 years of industry experience in Game/Frontend
development with special interest.
Book your Consultation
© Prakash Poudel