Is there a way to create a after_confirmation :do_something ?
after_confirmation :do_something
The goal is to send an e-mail after the user confirms using Devise :confirmable
:confirmable
We're combining answers from @Bernát and @RyanJM:
def confirm! super if confirmed_at_changed? and confirmed_at_was.nil? do_stuff end end
This seems a bit more performance aware and safe than the two answers separately.