diff options
author | hnatt <hnatt88@gmail.com> | 2015-10-30 10:41:58 +0200 |
---|---|---|
committer | hnatt <hnatt88@gmail.com> | 2015-10-30 10:41:58 +0200 |
commit | baaf3769ff179248353ced0c60495c349a912fe1 (patch) | |
tree | 8028b38ae09b9234add7eabf2a9a62cb34b08923 | |
parent | 2a55a6d2e518662d0f213cfe8c81b2eea66b5323 (diff) | |
download | rails-baaf3769ff179248353ced0c60495c349a912fe1.tar.gz rails-baaf3769ff179248353ced0c60495c349a912fe1.tar.bz2 rails-baaf3769ff179248353ced0c60495c349a912fe1.zip |
Don't mutate headers in ActionMailer::Base#collect_responses_from_templates
-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 0f7f271354..c350cd5bcc 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -902,8 +902,8 @@ module ActionMailer end def collect_responses_from_templates(headers) - templates_path = headers.delete(:template_path) || self.class.mailer_name - templates_name = headers.delete(:template_name) || action_name + templates_path = headers[:template_path] || self.class.mailer_name + templates_name = headers[:template_name] || action_name each_template(Array(templates_path), templates_name).map do |template| self.formats = template.formats |