Skip to content

Commit

Permalink
WEB-7288: Allow AI domain
Browse files Browse the repository at this point in the history
  • Loading branch information
jellodiil committed Oct 23, 2024
1 parent 4c77604 commit 28a2db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/content_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/models/video_course.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 28a2db5

Please sign in to comment.