Make budget groups translatable

This commit is contained in:
Julian Herrero
2019-01-21 11:35:38 +01:00
parent 90d0a6e416
commit 1c35ec99c1
16 changed files with 141 additions and 31 deletions

View File

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