Skip to content

Commit

Permalink
N'utilise pas le counter_cache dans le show d'une campagne puisqu'i…
Browse files Browse the repository at this point in the history
…l n'est pas fiable
  • Loading branch information
etienneCharignon authored and marouria committed Mar 8, 2023
1 parent 4fc9cc3 commit 854a93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/campagnes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

action_item :voir_evaluations, only: :show do
link_to I18n.t('admin.campagnes.action_items.voir_evaluations',
count: resource.nombre_evaluations),
count: Evaluation.where(campagne: resource).count),
admin_evaluations_path(q: { campagne_id_eq: resource })
end

Expand Down

0 comments on commit 854a93b

Please sign in to comment.