From ee3ac2ce9555bb33e1d71ae9c30547cbdfb153a9 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 31 Aug 2009 18:32:04 -0300 Subject: [PATCH] ActionItem1219: now actually sending the e-mail --- app/models/email_activation.rb | 4 ++++ app/models/task.rb | 5 +++++ 2 files changed, 9 insertions(+), 0 deletions(-) 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