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

@@ -62,7 +62,7 @@ namespace :admin do
end
resources :budget_investments, only: [:index, :show, :edit, :update] do
resources :budget_investment_milestones
resources :milestones, controller: 'budget_investment_milestones'
member { patch :toggle_selection }
end