Use a different controller for investment audits

The same way we do for milestones. We also make the code more consistent
since the view was already in a separate folder.
This commit is contained in:
Javi Martín
2019-11-03 01:05:53 +01:00
parent ed223e0bd1
commit e0c2468bd2
7 changed files with 18 additions and 9 deletions

View File

@@ -63,6 +63,7 @@ namespace :admin do
resources :budget_investments, only: [:index, :show, :edit, :update] do
member { patch :toggle_selection }
resources :audits, only: :show, controller: "budget_investment_audits"
resources :milestones, controller: "budget_investment_milestones"
resources :progress_bars, except: :show, controller: "budget_investment_progress_bars"
end
@@ -250,8 +251,6 @@ namespace :admin do
get "download_settings/:resource", to: "download_settings#edit", as: "edit_download_settings"
put "download_settings/:resource", to: "download_settings#update", as: "update_download_settings"
get "/admin/audits/:id", to: "budget_investments#audit", as: "audit"
resources :local_census_records
namespace :local_census_records do
resources :imports, only: [:new, :create, :show]