Use correct param in controller

This commit is contained in:
Julian Herrero
2019-01-17 10:28:22 +01:00
parent 4c511c534a
commit 0af5972d63

View File

@@ -25,7 +25,7 @@ module Budgets
end
def load_budget
@budget = Budget.find_by(slug: params[:id]) || Budget.find_by(id: params[:id])
@budget = Budget.find_by(slug: params[:budget_id]) || Budget.find_by(id: params[:budgetid])
end
def investments_by_heading_ordered_alphabetically