Sha256: 021cce6adb385d4a0c59fd6a32a6e0a35859857838284f5435b178a8aef819b9

Contents?: true

Size: 170 Bytes

Versions: 2

Compression:

Stored size: 170 Bytes

Contents

class Estimate < ActiveRecord::Base
  belongs_to :task
  belongs_to :user

  def after_create
puts todo
    task.finish(Task::COMPLETED, false) if todo == 0
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backlog-0.0.0 app/models/estimate.rb
backlog-0.0.1 app/models/estimate.rb