|
|
|
|
@ -23,7 +23,7 @@ module ReplaceEmailVariables
|
|
|
|
|
|
|
|
|
|
# rubocop:disable Metrics
|
|
|
|
|
def call(text, submitter:, tracking_event_type: 'click_email', html_escape: false, sig: nil)
|
|
|
|
|
text = replace(text, TEMPLATE_NAME, html_escape:) { submitter.template.name }
|
|
|
|
|
text = replace(text, TEMPLATE_NAME, html_escape:) { (submitter.template || submitter.submission.template).name }
|
|
|
|
|
text = replace(text, TEMPLATE_ID, html_escape:) { submitter.template.id }
|
|
|
|
|
text = replace(text, SUBMITTER_ID, html_escape:) { submitter.id }
|
|
|
|
|
text = replace(text, SUBMITTER_SLUG, html_escape:) { submitter.slug }
|
|
|
|
|
|