Make budget phases translatable

This commit is contained in:
Julian Herrero
2019-01-20 15:32:14 +01:00
parent f38c4e3a0c
commit 90d0a6e416
10 changed files with 110 additions and 39 deletions

View File

@@ -5,7 +5,7 @@
module ActionDispatch::Routing::UrlFor
def resource_hierarchy_for(resource)
case resource.class.name
when "Budget::Investment"
when "Budget::Investment", "Budget::Phase"
[resource.budget, resource]
when "Milestone"
[*resource_hierarchy_for(resource.milestoneable), resource]