Adds missing method to budget

This commit is contained in:
kikito
2016-12-16 17:59:03 +01:00
parent 2a9957cea0
commit 316c0cff62

View File

@@ -43,6 +43,10 @@ class Budget < ActiveRecord::Base
phase == "finished"
end
def current?
!finished?
end
def heading_price(heading)
heading_ids.include?(heading.id) ? heading.price : -1
end