Use audited to track investment changes

Our manual implementation had a few issues. In particular, it didn't
track changes related to associations, which became more of an issue
when we made investments translatable.

Using audited gives us more functionality while at the same time
simplifies our code. However, it adds one more external dependency to
our project.

The reason for choosing audited over paper trail is audited seems to
make it easier to handle associations.
This commit is contained in:
Javi Martín
2019-11-03 00:34:06 +01:00
parent 3f3fe9a3d3
commit ed223e0bd1
20 changed files with 142 additions and 135 deletions

View File

@@ -250,7 +250,7 @@ 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 "/change_log/:id", to: "budget_investments#show_investment_log", as: "change_log"
get "/admin/audits/:id", to: "budget_investments#audit", as: "audit"
resources :local_census_records
namespace :local_census_records do