From 28a2db538861903fb70462d6808aaffe468caf20 Mon Sep 17 00:00:00 2001 From: edith <58082567+jellodiil@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:36:35 +0100 Subject: [PATCH] WEB-7288: Allow AI domain --- app/models/content_module.rb | 2 +- app/models/video_course.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/content_module.rb b/app/models/content_module.rb index ac15863..89ad6ed 100644 --- a/app/models/content_module.rb +++ b/app/models/content_module.rb @@ -29,7 +29,7 @@ class ContentModule validates :lessons, length: { minimum: 1 }, allow_blank: false, lessons: true validates_each :domains do |record, attr, value| value.each do |domain| - record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth].include?(domain) + record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth ai].include?(domain) end end diff --git a/app/models/video_course.rb b/app/models/video_course.rb index 0a803df..60b655b 100644 --- a/app/models/video_course.rb +++ b/app/models/video_course.rb @@ -29,7 +29,7 @@ class VideoCourse validates :parts, length: { minimum: 1 }, allow_blank: false, parts: true validates_each :domains do |record, attr, value| value.each do |domain| - record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth].include?(domain) + record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth ai].include?(domain) end end