diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-03-10 16:31:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-10 16:31:15 +0100 |
commit | c87f6841b77e5827ca7bd03a629e2d615fae0d06 (patch) | |
tree | 8e62191b003d0dd096578566f891b66449191a57 /actionmailer | |
parent | 08a93efab6bdf10ba7afafb6e51f4b7809c97ebc (diff) | |
parent | c99e673902539a0bb1762a8786671f812076c2d9 (diff) | |
download | rails-c87f6841b77e5827ca7bd03a629e2d615fae0d06.tar.gz rails-c87f6841b77e5827ca7bd03a629e2d615fae0d06.tar.bz2 rails-c87f6841b77e5827ca7bd03a629e2d615fae0d06.zip |
Merge pull request #35121 from utilum/warning_tried_to_create_proc_without_block
Ruby 2.7 warning: creating a Proc without a block
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 5b6e7121b3..c1ac9c2ad1 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -944,9 +944,9 @@ module ActionMailer assignable.each { |k, v| message[k] = v } end - def collect_responses(headers) + def collect_responses(headers, &block) if block_given? - collect_responses_from_block(headers, &Proc.new) + collect_responses_from_block(headers, &block) elsif headers[:body] collect_responses_from_text(headers) else |