Add progress bar polymorphic views

This commit is contained in:
Javi Martín
2019-01-04 15:05:15 +01:00
committed by decabeza
parent eaea95ccfb
commit 4f25581636
12 changed files with 327 additions and 0 deletions

View File

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