aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-08-21 14:10:37 +0100
committerLouise Crow <louise.crow@gmail.com>2013-09-16 12:42:19 +0100
commitef17ef91cd3a7bf109a6a9e9c845e1bea6ea9edf (patch)
tree0fdee6324f4e2393ebff5bcd99283878765b6ca9 /app/views
parentd65804b7d8d2138b4570b26449321e1a9bb847fb (diff)
Move display text generation to outgoing message.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/request/_outgoing_correspondence.text.erb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/request/_outgoing_correspondence.text.erb b/app/views/request/_outgoing_correspondence.text.erb
index c3f2b935d..fe2ad901c 100644
--- a/app/views/request/_outgoing_correspondence.text.erb
+++ b/app/views/request/_outgoing_correspondence.text.erb
@@ -1,6 +1,4 @@
<%= _('From:') %> <% if @info_request.user_name %><%= @info_request.user_name %><% else %><%= "[#{_('An anonymous user')}]"%><% end %>
<%= _('To:') %> <%= @info_request.public_body.name %>
<%= _('Date:') %> <%= simple_date(info_request_event.created_at) %>
-<%- text = outgoing_message.body.strip
- outgoing_message.remove_privacy_sensitive_things!(text) %>
-<%= text %>
+<%= outgoing_message.get_body_for_text_display %>