summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-01 17:04:41 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-01 17:04:41 +0200
commit591e094e0636c084f218d52f25c01d51f7d3ecf5 (patch)
tree4bceff61caf751474457d3409866019c66f08a13 /app/mailers
parentd53befb0d165df1f9b51c4cc1e19b6b4bcdf821d (diff)
downloadgitlab-ce-591e094e0636c084f218d52f25c01d51f7d3ecf5.tar.gz
Add a delay for sending emails
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/notify.rb4
1 files changed, 4 insertions, 0 deletions
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
#