From 762b32cb779088d54448749717b5539d53393740 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 17 Aug 2009 12:47:08 -0300 Subject: [PATCH] ActionItem1165: send e-mail AFTER enabling it --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 95ece25..329420f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -39,7 +39,7 @@ class User < ActiveRecord::Base @person_data || {} end - before_update do |user| + after_update do |user| if !User.find(user.id).enable_email and user.enable_email and !user.environment.nil? User::Mailer.deliver_activation_email_notify(user) end -- libgit2 0.21.2