Sha256: 67186f30ac52c08d22e1053a1c8b863c45986bb5ebdacc2bf65c0365e7ba8cd2
Contents?: true
Size: 456 Bytes
Versions: 60
Compression:
Stored size: 456 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 validates_presence_of :todo def after_create task.finish(Task::COMPLETED, false) if todo == 0 end end
Version data entries
60 entries across 60 versions & 1 rubygems