diff --git a/app/controllers/manager/dossiers_controller.rb b/app/controllers/manager/dossiers_controller.rb index c05dcd1f6..5f64cb7e8 100644 --- a/app/controllers/manager/dossiers_controller.rb +++ b/app/controllers/manager/dossiers_controller.rb @@ -25,5 +25,9 @@ module Manager def paginate_resources(_resources) super.without_count end + + def find_resource(param) + DossierPreloader.load_one(Dossier.find(param)) + end end end