allow header_instructions to be passed in to message builder

This commit is contained in:
Neil Lalonde 2017-12-05 15:12:18 -05:00
parent 94e9be3b88
commit 85a59c632d
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module Email
}.merge!(@opts) }.merge!(@opts)
if @template_args[:url].present? 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 if @opts[:include_respond_instructions] == false
@template_args[:respond_instructions] = '' @template_args[:respond_instructions] = ''