[#4180] Block total from getting set on HourlyDeliverables.
This commit is contained in:
1 parent
fa1ef6bf10
commit
5074667b28
3 files changed
+40
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user