Audit changes in investment translations

Note the user interface could certainly be improved, as it doesn't show
which languages have changed.
This commit is contained in:
Javi Martín
2019-11-03 12:58:44 +01:00
parent e0c2468bd2
commit 04cd3b460e
5 changed files with 11 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
class Admin::BudgetInvestmentAuditsController < Admin::BaseController
def show
investment = Budget::Investment.find(params[:budget_investment_id])
@audit = investment.audits.find(params[:id])
@audit = investment.own_and_associated_audits.find(params[:id])
render "admin/audits/show"
end