Load budgets using slugs
This commit is contained in:
@@ -37,7 +37,7 @@ module Budgets
|
||||
end
|
||||
|
||||
def load_budget
|
||||
@budget = Budget.find(params[:budget_id])
|
||||
@budget = Budget.find_by(slug: params[:budget_id]) || Budget.find_by(id: params[:budget_id])
|
||||
end
|
||||
|
||||
def load_ballot
|
||||
|
||||
Reference in New Issue
Block a user