Tasks creation (mostly)

This commit is contained in:
2026-03-21 14:48:27 +02:00
parent dbd849589b
commit fb9d884313
15 changed files with 81 additions and 37 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ class Task < ApplicationRecord
private
def associations_should_have_same_project
return if status&.project == project
return if [project, status.project, workflow.project].uniq == [project]
errors.add(:status, "Doesn't belong in the same project")
errors.add(:base, "Project isn't the same across associations")
end
end