From b2fd6b3bd0949a132161f65b6ec851cfda02c4de Mon Sep 17 00:00:00 2001
From: Marcela Ribeiro de Oliveira <mro15@inf.ufpr.br>
Date: Mon, 26 Feb 2018 10:20:28 -0300
Subject: [PATCH] add name and reason

---
 app/views/complaints_mailer/new_complaint_received.html.erb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/views/complaints_mailer/new_complaint_received.html.erb b/app/views/complaints_mailer/new_complaint_received.html.erb
index a7978285..556ed050 100644
--- a/app/views/complaints_mailer/new_complaint_received.html.erb
+++ b/app/views/complaints_mailer/new_complaint_received.html.erb
@@ -10,6 +10,7 @@
   <h2>Descrição: <%= @complaint.description %></h1>
   <h2>Classe denunciada: <%= @complaint.complainable_type %></h1>
   <h2>Id: <%= @complaint.complainable_id %></h1>
-  <h2>Razão: <%= @complaint.complaint_reason_id %></h1>
+  <h2>Nome: <%= @complaint.complainable.name %></h1>
+  <h2>Razão: <%= @complaint.complaint_reason.reason %></h1>
   </body>
 </html>
-- 
GitLab