Use the state_not_brouillon Dossier scope

This commit is contained in:
gregoirenovel 2017-07-10 16:11:12 +02:00
parent 09d596eec1
commit f480f26bd4
7 changed files with 9 additions and 9 deletions

View file

@ -21,7 +21,7 @@
= admin.procedures.published.count
%td
- total_dossier = 0
- admin.procedures.each do |procedure| total_dossier += procedure.dossiers.where.not(state: :draft).count end
- admin.procedures.each do |procedure| total_dossier += procedure.dossiers.where.state_not_brouillon.count end
= total_dossier
= smart_listing.paginate
= smart_listing.pagination_per_page_links