app/helpers/contacts_helper.rb
# Contact summary for RSS/ATOM feeds.
#----------------------------------------------------------------------------
Contact summary for RSS/ATOM feeds.
Contact summary for RSS / ATOM feeds .
def contact_summary(contact)
    summary = ['']
    summary << contact.title.titleize if contact.title?
    summary << contact.department if contact.department?
    summary.last += " #{t(:at)} #{contact.account.name}" if contact.account&.name?
    summary << contact.email if contact.email.present?
    summary << "#{t(:phone_small)}: #{contact.phone}" if contact.phone.present?
    summary << "#{t(:mobile_small)}: #{contact.mobile}" if contact.mobile.present?
    summary.join(', ')
  end
def contact_summary ( contact ) summary = [ '' ] summary << contact . title . titleize if contact . title? summary << contact . department if contact . department? summary . last += " #{t(:at)} #{contact.account.name}" if contact . account &. name? summary << contact . email if contact . email . present? summary << "#{t(:phone_small)}: #{contact.phone}" if contact . phone . present? summary << "#{t(:mobile_small)}: #{contact.mobile}" if contact . mobile . present? summary . join ( ', ' ) end
Contact summary for RSS/ATOM feeds.
Contact summary for RSS / ATOM feeds .
contact