Audit changes in investment translations

Note the user interface could certainly be improved, as it doesn't show
which languages have changed.
This commit is contained in:
Javi Martín
2019-11-03 12:58:44 +01:00
parent e0c2468bd2
commit 04cd3b460e
5 changed files with 11 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ module ActionDispatch::Routing::UrlFor
when "ProgressBar"
[*resource_hierarchy_for(resource.progressable), resource]
when "Audit"
[*resource_hierarchy_for(resource.auditable), resource]
[*resource_hierarchy_for(resource.associated || resource.auditable), resource]
when "Legislation::Annotation"
[resource.draft_version.process, resource.draft_version, resource]
when "Legislation::Proposal", "Legislation::Question", "Legislation::DraftVersion"