app/models/task_manager/plan.rb in task-manager-0.1.6 vs app/models/task_manager/plan.rb in task-manager-0.1.7

- old
+ new

@@ -65,10 +65,14 @@ t.autocompletable = autocompletable t.create_assignable( assignee_id: a.assignee_id, assignee_type: a.assignee_type, ) - t.callables = callables + #t.callables = callables + t.callables = [] + callables.each do |c| + t.callables << Callable.create!(callback_id: c.callback_id, callback_type: c.callback_type) + end end end def default_deadline now = Time.now