Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChantal Rollison <crollison@gitlab.com>2018-09-10 20:26:33 +0300
committerChantal Rollison <crollison@gitlab.com>2018-10-19 04:43:50 +0300
commitc871faa3e42edf7c1d92669cf18a5b0de7c84ace (patch)
tree2444e8fa9d9233ff245e93076b610a47022146b9 /app/models/list.rb
parenta88004c876b94d44ce61c19d8c4c42e8de636f58 (diff)
Add preload in issues controller
Diffstat (limited to 'app/models/list.rb')
-rw-r--r--app/models/list.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/list.rb b/app/models/list.rb
index 1a30acc83cf..029685be927 100644
--- a/app/models/list.rb
+++ b/app/models/list.rb
@@ -15,6 +15,7 @@ class List < ActiveRecord::Base
scope :destroyable, -> { where(list_type: list_types.slice(*destroyable_types).values) }
scope :movable, -> { where(list_type: list_types.slice(*movable_types).values) }
+ scope :preload_associations, -> { preload(:board, :label) }
class << self
def destroyable_types