Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

add comment explaining change to mail API

Markus Kahl2c28952aee5d
diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb
index ada998d117a..e8b14ceb952 100644
--- a/app/mailers/application_mailer.rb
+++ b/app/mailers/application_mailer.rb
@@ -117,6 +117,8 @@ class ApplicationMailer < ActionMailer::Base
##
# Overwrite mailer method to prevent sending mails to locked users.
+ # Usually this would accept a string for the `to:` argument, but
+ # we always require an actual user object since fed95796.
def mail(headers = {}, &block)
block ||= method(:default_formats_for_setting)
to = headers[:to]