From cde9364f76f05f80dbf9626318dbde8b4ded72fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Wed, 18 Oct 2023 22:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9owners=20nil=E9=8C=AF?= =?UTF-8?q?=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/property_hires_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/property_hires_controller.rb b/app/controllers/property_hires_controller.rb index 9cb013d..ee5f4b8 100644 --- a/app/controllers/property_hires_controller.rb +++ b/app/controllers/property_hires_controller.rb @@ -125,7 +125,7 @@ class PropertyHiresController < ApplicationController "value" => property.purchase_date.strftime("%Y-%m-%d") } end - if property.owners.empty? + if property.owners.blank? owners = property.other_owner else owners = property.owner_profiles.collect{|mp| mp.name}.join(",")