diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-30 03:09:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-30 03:09:03 +0300 |
commit | b72218d98e11514569939cf475d3c626fed445d1 (patch) | |
tree | 8c69b5590ea68963673f2f4d3a886a5095f3b524 /app/models/repository_language.rb | |
parent | ba537a9b5cf97308fd9fe099e0d022a9a76b66ad (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/repository_language.rb')
-rw-r--r-- | app/models/repository_language.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/repository_language.rb b/app/models/repository_language.rb index 2816aa4cc5b..60aaa1f932a 100644 --- a/app/models/repository_language.rb +++ b/app/models/repository_language.rb @@ -8,8 +8,8 @@ class RepositoryLanguage < ApplicationRecord default_scope { includes(:programming_language) } # rubocop:disable Cop/DefaultScope - scope :with_programming_language, ->(name) do - joins(:programming_language).merge(ProgrammingLanguage.with_name_case_insensitive(name)) + scope :with_programming_language, ->(*names) do + joins(:programming_language).merge(ProgrammingLanguage.with_name_case_insensitive(*names)) end validates :project, presence: true |