Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-01 19:04:41 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-01 19:04:41 +0400
commit591e094e0636c084f218d52f25c01d51f7d3ecf5 (patch)
tree4bceff61caf751474457d3409866019c66f08a13 /app
parentd53befb0d165df1f9b51c4cc1e19b6b4bcdf821d (diff)
Add a delay for sending emails
Diffstat (limited to 'app')
-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
#