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