From 212574e17af7df344ff3260009b4768245e32627 Mon Sep 17 00:00:00 2001
From: chiu <naruto0426@rulingcom.com>
Date: Thu, 2 Apr 2020 23:17:26 +0800
Subject: [PATCH] add title of hiring object for email

---
 app/views/email/p_hire_email.html.erb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/views/email/p_hire_email.html.erb b/app/views/email/p_hire_email.html.erb
index 708af9b..e486a83 100644
--- a/app/views/email/p_hire_email.html.erb
+++ b/app/views/email/p_hire_email.html.erb
@@ -8,6 +8,7 @@
 <% end %>
 <br>
 <% I18n.with_locale(@data['locale']) do %>
+  <h3><%= Property.where(id: @data['property_id']).first.title rescue nil %></h3>
   <% if !@data['hire_id'].nil? %>
     <% hire = PHire.where(id: @data['hire_id']).first %>
     <table>