Use the state_not_brouillon Dossier scope
This commit is contained in:
parent
09d596eec1
commit
f480f26bd4
7 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue