module UserHelper def humanize_document_type(document_type) case document_type when "1" t "verification.residence.new.document_type.spanish_id" when "2" t "verification.residence.new.document_type.passport" when "3" t "verification.residence.new.document_type.residence_card" end end end