Use a different controller for investment audits

The same way we do for milestones. We also make the code more consistent
since the view was already in a separate folder.
This commit is contained in:
Javi Martín
2019-11-03 01:05:53 +01:00
parent ed223e0bd1
commit e0c2468bd2
7 changed files with 18 additions and 9 deletions

View File

@@ -13,6 +13,8 @@ module ActionDispatch::Routing::UrlFor
[*resource_hierarchy_for(resource.milestoneable), resource]
when "ProgressBar"
[*resource_hierarchy_for(resource.progressable), resource]
when "Audit"
[*resource_hierarchy_for(resource.auditable), resource]
when "Legislation::Annotation"
[resource.draft_version.process, resource.draft_version, resource]
when "Legislation::Proposal", "Legislation::Question", "Legislation::DraftVersion"