diff --git a/app/models/email_activation.rb b/app/models/email_activation.rb index f098717..616834c 100644 --- a/app/models/email_activation.rb +++ b/app/models/email_activation.rb @@ -17,6 +17,10 @@ class EmailActivation < Task def perform person.user.enable_email! + end + + # :nodoc: + def after_finish User::Mailer.deliver_activation_email_notify(person.user) end diff --git a/app/models/task.rb b/app/models/task.rb index 6ec9c83..5f5f82e 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -80,6 +80,11 @@ class Task < ActiveRecord::Base RAILS_DEFAULT_LOGGER.info ex.to_s end end + after_finish + end + + # :nodoc: + def after_finish end # this method cancels the task. At the end a message (as returned by -- libgit2 0.21.2