[#4646] Memoize Deliverable subclasses

This commit is contained in:
Eric Davis committed 2010-10-13 15:18:52 -07:00
1 parent 650296bd52
commit 3b5c008a65
3 files changed
+73 -43

No files matched your search

+3 -1
View File
@@ -23,7 +23,9 @@ class FixedDeliverable < Deliverable
# Fixed deliverables are always 100% spent so they markup is captured
# right away.
def fixed_markup_budget_total_spent(date=nil)
fixed_markup_budget_total(date)
memoize_by_date("@fixed_markup_budget_total_spent", date) do
fixed_markup_budget_total(date)
end
end
# Hardcoded value used as a wrapper for the old Budget plugin API.