From 85a59c632daec0dad1c6066b51f61402aef5108c Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 5 Dec 2017 15:12:18 -0500 Subject: [PATCH] allow header_instructions to be passed in to message builder --- lib/email/message_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email/message_builder.rb b/lib/email/message_builder.rb index c72d7bca9ea..9bc9cfd5dd5 100644 --- a/lib/email/message_builder.rb +++ b/lib/email/message_builder.rb @@ -30,7 +30,7 @@ module Email }.merge!(@opts) if @template_args[:url].present? - @template_args[:header_instructions] = I18n.t('user_notifications.header_instructions', @template_args) + @template_args[:header_instructions] ||= I18n.t('user_notifications.header_instructions', @template_args) if @opts[:include_respond_instructions] == false @template_args[:respond_instructions] = ''