fix error

This commit is contained in:
chiu 2021-01-25 15:01:07 +08:00
parent 69e269cf59
commit c9f424b30d
1 changed files with 2 additions and 2 deletions

View File

@ -31,9 +31,9 @@
<% elsif ['property_usage','note'].include?(k) %> <% elsif ['property_usage','note'].include?(k) %>
<%= property[k].collect{|k,v| v}.uniq.join('/') rescue nil %> <%= property[k].collect{|k,v| v}.uniq.join('/') rescue nil %>
<% elsif k=='owners' %> <% elsif k=='owners' %>
<%= property.owner_profiles.collect{|v| v.name}.join(', ') %> <%= property.owner_profiles.collect{|v| v.name}.join(', ') rescue nil %>
<% elsif ['category','property_location'].include?(k) %> <% elsif ['category','property_location'].include?(k) %>
<%= v.title %> <%= v.title rescue nil %>
<% elsif k == 'can_be_hired' %> <% elsif k == 'can_be_hired' %>
<%= v ? t('yes_') : t('no_') %> <%= v ? t('yes_') : t('no_') %>
<% else %> <% else %>