Make Milestones general, and not specific to Budget Investments

Generalize the Budget::Investment::Milestone model to a
polymorphic Milestone model so it can be used for entities
other than Budget::Investment.
This commit is contained in:
Marko Lovic
2018-07-16 15:00:56 +02:00
committed by Javi Martín
parent 81f516efd7
commit c0f6fa182f
23 changed files with 176 additions and 122 deletions

View File

@@ -317,7 +317,7 @@ end
# even share the same colour.
def update_button_text
case translatable_class.name
when "Budget::Investment::Milestone"
when "Milestone"
"Update milestone"
when "AdminNotification"
"Update notification"