Sha256: e2111fa5814cb16ec7dead98ca5e84396d9f45d3469873df625ed8c34fd42fa9
Contents?: true
Size: 428 Bytes
Versions: 4
Compression:
Stored size: 428 Bytes
Contents
# 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. class Estimate < ActiveRecord::Base belongs_to :task belongs_to :user validates_presence_of :task_id validates_associated :task def after_create task.finish(Task::COMPLETED, false, user) if todo == 0 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
backlog-0.2.1 | app/models/estimate.rb |
backlog-0.3.0 | app/models/estimate.rb |
backlog-0.3.1 | app/models/estimate.rb |
backlog-0.3.2 | app/models/estimate.rb |