pull/1432/head
Hagen Schink 11 years ago
parent ed294f5b97
commit 8681d466bb
  1. 6
      app/mailers/user_mailer.rb

@ -65,9 +65,9 @@ class UserMailer < ActionMailer::Base
end
def work_package_updated(user, journal, author=User.current)
# Delayed job do not preserve the closure of the job that is delayed. Thus,
# if the method is called within a delayed job, it does contain the default
# user (anonymous) and not the original user that called the method.
# Delayed job does not preserve the closure of the job that is delayed.
# Thus, if the method is called within a delayed job, it does contain the
# default user (anonymous) and not the original user that called the method.
#
# The mail interceptor 'RemoveSelfNotificationsInterceptor' assumes the
# orginal user to be available. Otherwise, it cannot fulfill its duty.

Loading…
Cancel
Save