From 591e094e0636c084f218d52f25c01d51f7d3ecf5 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Fri, 1 Feb 2013 17:04:41 +0200
Subject: [PATCH] Add a delay for sending emails

---
 app/mailers/notify.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index c672940a05e..08f7e01aab1 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -10,6 +10,10 @@ class Notify < ActionMailer::Base
 
   default from: Gitlab.config.gitlab.email_from
 
+  # Just send email with 3 seconds delay
+  def self.delay
+    delay_for(2.seconds)
+  end
 
 
   #
-- 
GitLab