!foo.blank? -> foo.present?

This commit is contained in:
gregoirenovel 2018-01-11 20:04:47 +01:00
parent bbaebe0602
commit aedafbaf2e
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ class DossiersListFacades
end
def active_filter? preference
return true if @procedure.nil? || preference.table != 'champs' || (preference.table == 'champs' && !preference.filter.blank?)
return true if @procedure.nil? || preference.table != 'champs' || (preference.table == 'champs' && preference.filter.present?)
preference_list_dossiers_filter.where(table: :champs).where.not(filter: '').size == 0
end

View file

@ -20,7 +20,7 @@
#liste-champs
= render partial: 'users/description/champs', locals: { private: false }
- if !@procedure.lien_demarche.blank? || @procedure.cerfa_flag || @dossier.types_de_piece_justificative.size > 0
- if @procedure.lien_demarche.present? || @procedure.cerfa_flag || @dossier.types_de_piece_justificative.size > 0
%br
%h3 Pièces jointes