Class: Estimate
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Estimate
- Defined in:
- app/models/estimate.rb
Overview
Holds a value given by a user at a certain time estimating how many work-points (gummybears?) still remain until this task is completed.
A value of zero indicated that the task is completed.
Instance Method Summary collapse
Instance Method Details
#after_create ⇒ Object
13 14 15 |
# File 'app/models/estimate.rb', line 13 def after_create task.finish(Task::COMPLETED, false) if todo == 0 end |