Commit 591e094e0636c084f218d52f25c01d51f7d3ecf5
1 parent
d53befb0
Exists in
master
and in
4 other branches
Add a delay for sending emails
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
app/mailers/notify.rb
| @@ -10,6 +10,10 @@ class Notify < ActionMailer::Base | @@ -10,6 +10,10 @@ class Notify < ActionMailer::Base | ||
| 10 | 10 | ||
| 11 | default from: Gitlab.config.gitlab.email_from | 11 | default from: Gitlab.config.gitlab.email_from |
| 12 | 12 | ||
| 13 | + # Just send email with 3 seconds delay | ||
| 14 | + def self.delay | ||
| 15 | + delay_for(2.seconds) | ||
| 16 | + end | ||
| 13 | 17 | ||
| 14 | 18 | ||
| 15 | # | 19 | # |