Sha256: 2ad35901619ba0b6339bdf066137d26c6c43d265131172af932a0e6dcf99b036
Contents?: true
Size: 422 Bytes
Versions: 48
Compression:
Stored size: 422 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) if todo == 0 end end
Version data entries
48 entries across 48 versions & 1 rubygems