Fix typo at budgets:phases:generate_missing rake task

This commit is contained in:
Bertocq
2018-01-17 13:02:14 +01:00
parent 2fb1112066
commit 7db0d832d9

View File

@@ -22,9 +22,9 @@ namespace :budgets do
budget: budget,
kind: phase,
description: budget.send("description_#{phase}"),
prev_phase: phases&.last,
starts_at: phases&.last&.ends_at || Date.current,
ends_at: (phases&.last&.ends_at || Date.current) + 1.month
prev_phase: budget.phases&.last,
starts_at: budget.phases&.last&.ends_at || Date.current,
ends_at: (budget.phases&.last&.ends_at || Date.current) + 1.month
)
end
end