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

Version Path
backlog-0.10.0 app/models/estimate.rb
backlog-0.10.1 app/models/estimate.rb
backlog-0.10.2 app/models/estimate.rb
backlog-0.10.4 app/models/estimate.rb
backlog-0.10.3 app/models/estimate.rb
backlog-0.3.3 app/models/estimate.rb
backlog-0.3.4 app/models/estimate.rb
backlog-0.3.5 app/models/estimate.rb
backlog-0.3.6 app/models/estimate.rb
backlog-0.3.8 app/models/estimate.rb
backlog-0.3.7 app/models/estimate.rb
backlog-0.3.9 app/models/estimate.rb
backlog-0.5.0 app/models/estimate.rb
backlog-0.4.0 app/models/estimate.rb
backlog-0.5.1 app/models/estimate.rb
backlog-0.5.10 app/models/estimate.rb
backlog-0.5.2 app/models/estimate.rb
backlog-0.5.3 app/models/estimate.rb
backlog-0.5.4 app/models/estimate.rb
backlog-0.5.6 app/models/estimate.rb