[#4182] Added an OverheadBudget to track a Deliverable's overhead.
This commit is contained in:
1 parent
fdd49642b2
commit
b22db284c5
9 files changed
+105
-7
No files matched your search
@@ -0,0 +1,18 @@
|
||||
class OverheadBudget < ActiveRecord::Base
|
||||
unloadable
|
||||
|
||||
# Associations
|
||||
belongs_to :deliverable
|
||||
|
||||
# Validations
|
||||
|
||||
# Accessors
|
||||
|
||||
def budget=(v)
|
||||
if v.is_a? String
|
||||
write_attribute(:budget, v.gsub(/[$ ,]/, ''))
|
||||
else
|
||||
write_attribute(:budget, v)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user