You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ivo Benedito edited this page Dec 29, 2017
·
3 revisions
How to Disable the Confirmation Emails
In order to disable the confirmation emails from going out, you simply need to create an after_create callback method and overwrite the send_confirmation_email method.
Put the following code into your User model. This code below works on the tested application using 0.8.8.
classUser < ActiveRecord::BaseincludeClearance::Userafter_create:confirm_userdefsend_confirmation_email#deliver_confirmation_email # Do Nothing # or MyMailer.deliver_thank_you self endprivatedefconfirm_userconfirm_email!endend