Add a delay for sending emails
This commit is contained in:
parent
d53befb0d1
commit
591e094e06
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue