[#4180] Block total from getting set on HourlyDeliverables.

This commit is contained in:
Eric Davis committed 2010-07-02 11:38:29 -07:00
1 parent fa1ef6bf10
commit 5074667b28
3 files changed
+40

No files matched your search

+16
View File
@@ -7,7 +7,23 @@ class HourlyDeliverable < Deliverable
# Accessors
# Callbacks
before_save :clear_total
def short_type
'H'
end
# Block getting and setting the total on HourlyDeliverables
def total
nil
end
def total=(v)
nil
end
def clear_total
write_attribute(:total, nil)
end
end