aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-01-30 08:15:44 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-01-30 08:15:44 +1100
commit7c1741d80f51e7b8085a45616c1545ebe36c9f77 (patch)
treef65da5f7b61c7d1525cc3bc0e5fbae0112cf294b
parenta73cbbac2c7c4b988b7acbca44dd817f5dec66a3 (diff)
Objects need to be strings before they can be cast with to_str
-rw-r--r--app/views/admin_request/show.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin_request/show.rhtml b/app/views/admin_request/show.rhtml
index 2541fd323..973bf8bf3 100644
--- a/app/views/admin_request/show.rhtml
+++ b/app/views/admin_request/show.rhtml
@@ -122,7 +122,7 @@
<div style="display:none;"><%= simple_format( outgoing_message.body ) %></div>
</td>
<% else %>
- <td><%= simple_format( outgoing_message.send(column) ) %></td>
+ <td><%= simple_format( outgoing_message.send(column).to_s ) %></td>
<% end %>
<% end %>
@@ -162,7 +162,7 @@
<div style="display:none;"><%= simple_format( incoming_message.send(column) ) %></div>
</td>
<% else %>
- <td><%= simple_format( incoming_message.send(column) ) %></td>
+ <td><%= simple_format( incoming_message.send(column).to_s ) %></td>
<% end %>
<% end %>
<td>