Merge pull request #3067 from microweb10/issue-3051

Fix failing spec: Budget::Investment Reclassification store_reclassified_votes stores the votes for a reclassified investment
This commit is contained in:
Julian Nicolas Herrero
2018-12-05 17:21:38 +01:00
committed by GitHub

View File

@@ -30,7 +30,7 @@ class Budget
end
def store_reclassified_votes(reason)
ballot_lines_for_investment.each do |line|
ballot_lines_for_investment.order(:id).each do |line|
attrs = { user: line.ballot.user,
investment: self,
reason: reason }