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

Version Path
backlog-0.36.2 app/models/estimate.rb
backlog-0.10.5 app/models/estimate.rb
backlog-0.10.6 app/models/estimate.rb
backlog-0.10.7 app/models/estimate.rb
backlog-0.11.0 app/models/estimate.rb
backlog-0.12.0 app/models/estimate.rb
backlog-0.10.8 app/models/estimate.rb
backlog-0.12.2 app/models/estimate.rb
backlog-0.12.1 app/models/estimate.rb
backlog-0.12.4 app/models/estimate.rb
backlog-0.12.3 app/models/estimate.rb
backlog-0.13.1 app/models/estimate.rb
backlog-0.13.0 app/models/estimate.rb
backlog-0.14.0 app/models/estimate.rb
backlog-0.14.2 app/models/estimate.rb
backlog-0.14.3 app/models/estimate.rb
backlog-0.14.1 app/models/estimate.rb
backlog-0.14.4 app/models/estimate.rb
backlog-0.15.0 app/models/estimate.rb
backlog-0.16.0 app/models/estimate.rb