We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4fe890 commit 225c42fCopy full SHA for 225c42f
1 file changed
lib/sendgrid/helpers/mail/mail.rb
@@ -8,7 +8,9 @@ class Mail
8
attr_reader :personalizations, :contents, :attachments, :categories, :sections, :headers, :custom_args
9
attr_writer :from, :asm, :mail_settings, :tracking_settings, :reply_to
10
11
- def initialize(from_email = nil, subj = nil, to_email = nil, cont = nil)
+ # We allow for all nil values here to create uninitialized Mail objects
12
+ # (e.g. <project-root>/use-cases/transactional-templates.md)
13
+ def initialize(from_email = nil, subj = nil, to_email = nil, cont = nil) # rubocop:disable Metrics/ParameterLists
14
@from = nil
15
@subject = nil
16
@personalizations = []
0 commit comments