app/helpers/leads_helper.rb
# Do not offer :converted status choice if we are creating a new lead or
# editing existing lead that hasn't been converted before.
#----------------------------------------------------------------------------
Do not offer :converted status choice if we are creating a new lead or
editing existing lead that hasn't been converted before.
Do not offer : converted status choice if we are creating a new lead or editing existing lead that hasn ' t been converted before .
def lead_status_codes_for(lead)
    if lead.status != "converted" && (lead.new_record? || lead.contact.nil?)
      Setting.unroll(:lead_status).delete_if { |status| status.last == :converted }
    else
      Setting.unroll(:lead_status)
    end
  end
def lead_status_codes_for ( lead ) if lead . status != "converted" && ( lead . new_record? || lead . contact . nil? ) Setting . unroll ( :lead_status ) . delete_if { | status | status . last == :converted } else Setting . unroll ( :lead_status ) end end
Do not offer :converted status choice if we are creating a new lead or
editing existing lead that hasn't been converted before.
Do not offer : converted status choice if we are creating a new lead or editing existing lead that hasn ' t been converted before .
lead