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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user