修復owners nil錯誤
This commit is contained in:
parent
6ad48313ed
commit
cde9364f76
|
@ -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(",")
|
||||
|
|
Loading…
Reference in New Issue