diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-12 03:09:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-12 03:09:00 +0300 |
commit | b133cb2468b412683dbc5f19492d98b2ffa47d09 (patch) | |
tree | d01f5db9e1a7576fccadd2ea5a2a7c9ea8b25d99 /app/models | |
parent | 0e9eea40b62fcae67b2bd885dbedd7525fbca3c7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/pipeline_schedule.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb index 9a1445e624c..f5785000062 100644 --- a/app/models/ci/pipeline_schedule.rb +++ b/app/models/ci/pipeline_schedule.rb @@ -23,7 +23,7 @@ module Ci scope :active, -> { where(active: true) } scope :inactive, -> { where(active: false) } - scope :preloaded, -> { preload(:owner, :project) } + scope :preloaded, -> { preload(:owner, project: [:route]) } accepts_nested_attributes_for :variables, allow_destroy: true |