Module: Redmine::JobWrapper

Included in:
ApplicationJob, Mailer::DeliveryJob
Defined in:
lib/redmine/job_wrapper.rb

Instance Method Summary collapse

Instance Method Details

#keep_current_userObject



22
23
24
25
26
# File 'lib/redmine/job_wrapper.rb', line 22

def keep_current_user
  current_user = User.current
  yield
  User.current = current_user
end