displays the correct amount spent in review my ballot

returns the first heading with investments for a group
This commit is contained in:
rgarcia
2017-05-03 17:06:27 +02:00
parent 43e4ec7b44
commit 2f6c1bc7bc
2 changed files with 30 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ class Budget
end
def heading_for_group(group)
self.headings.where(group: group).first
self.investments.where(group: group).first.heading
end
end