app/views/notification_mailer/info_requests/_info_request.text.erb
<%= info_request.title %>
<%= "-" * info_request.title.length %>
<%= _("What's happened:") %>
<% notifications.each do |notification| %>
<% event_type = notification.info_request_event.event_type %>
<% partial = "notification_mailer/info_requests/messages/#{event_type}" %>
<%= render partial: partial,
locals: { info_request: info_request,
notification: notification,
info_request_event: notification.info_request_event } %>
<% end %>