diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-01 19:04:41 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-01 19:04:41 +0400 |
commit | 591e094e0636c084f218d52f25c01d51f7d3ecf5 (patch) | |
tree | 4bceff61caf751474457d3409866019c66f08a13 /app | |
parent | d53befb0d165df1f9b51c4cc1e19b6b4bcdf821d (diff) |
Add a delay for sending emails
Diffstat (limited to 'app')
-rw-r--r-- | app/mailers/notify.rb | 4 |
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 # |