From 93498d31b2d339c74c24a9efedd5c813f99cba37 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 13 Jul 2010 10:39:39 -0700 Subject: [PATCH] [#4183] Split TODO columns by this release and later release. --- app/models/contract.rb | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app/models/contract.rb b/app/models/contract.rb index f892cc0..346664c 100644 --- a/app/models/contract.rb +++ b/app/models/contract.rb @@ -29,10 +29,19 @@ class Contract < ActiveRecord::Base attr_accessible :po_number attr_accessible :details - [:status, :contract_type, :labor_spent, :overhead_spent, - :fixed_spent, :fixed_budget, :total_spent, - :markup_spent, :markup_budget, :profit_spent, - :discount_spent, :discount_budget, :client_point_of_contact, + [:status, :contract_type, + :fixed_spent, :fixed_budget, + :markup_spent, :markup_budget, + :discount_spent, :discount_budget + ].each do |mthd| + define_method(mthd) { "TODO in later release" } + end + + [:labor_spent, + :overhead_spent, + :total_spent, + :profit_spent, + :client_point_of_contact, :estimated_hour_spent ].each do |mthd| define_method(mthd) { "TODO" }