Skip to content

Commit e0e4faf

Browse files
author
Scott Adams
committed
docs: add todo for validation false
1 parent 0e62b8c commit e0e4faf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/concepts/lesson/operations/update.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ def rename_lesson_project(lesson:, name:)
2424
return unless lesson.project
2525

2626
lesson.project.assign_attributes(name:)
27+
# TODO: determine school owner mechanism for project model validation rather than skipping validation
2728
lesson.project.save!(validate: false)
2829
end
2930

3031
def rename_lesson_remixes(lesson:, name:)
3132
lesson_remixes = Project.where(remixed_from_id: lesson.project.id)
3233
lesson_remixes.each do |remix|
3334
remix.assign_attributes(name:)
35+
# TODO: determine school owner mechanism for project model validation rather than skipping validation
3436
remix.save!(validate: false)
3537
end
3638
end

0 commit comments

Comments
 (0)