Hotfixing find the only budget for emails

This commit is contained in:
Bertocq
2017-07-13 19:29:30 +02:00
committed by Javi Martín
parent 90c1d681d0
commit 0d761ddfb1

View File

@@ -14,7 +14,7 @@ module Budgets
private
def load_budget
@budget = Budget.find_by(id: params[:budget_id])
@budget = Budget.find_by(id: params[:budget_id]) || Budget.first
end
def load_heading