# File app/models/task.rb, line 195 def check_finished(subtask_finsihed_at, resolution, save_work) return if self.finished_at children.each do |child_task| return if child_task.active? end finish(resolution, save_work) end