From aa91fdff715cbf8d953754fd07fbded0c71e8dab Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Wed, 14 Mar 2018 00:31:48 +0900 Subject: Add rubocop:disable GitlabSecurity/PublicSend --- app/models/ci/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 1e2b8e4793d..dafad611060 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -43,7 +43,7 @@ module Ci scope :ignore_failures, ->() { where(allow_failure: false) } scope :with_artifacts, ->(file_type) do where('(artifacts_file IS NOT NULL AND artifacts_file <> ?) OR EXISTS (?)', - '', Ci::JobArtifact.select(1).where('ci_builds.id = ci_job_artifacts.job_id').public_send(file_type)) + '', Ci::JobArtifact.select(1).where('ci_builds.id = ci_job_artifacts.job_id').public_send(file_type)) # rubocop:disable GitlabSecurity/PublicSend end scope :with_artifacts_not_expired, ->() { with_artifacts(:archive).where('artifacts_expire_at IS NULL OR artifacts_expire_at > ?', Time.now) } scope :with_expired_artifacts, ->() { with_artifacts(:archive).where('artifacts_expire_at < ?', Time.now) } -- cgit v1.2.1