diff options
author | Chantal Rollison <crollison@gitlab.com> | 2018-09-10 20:26:33 +0300 |
---|---|---|
committer | Chantal Rollison <crollison@gitlab.com> | 2018-10-19 04:43:50 +0300 |
commit | c871faa3e42edf7c1d92669cf18a5b0de7c84ace (patch) | |
tree | 2444e8fa9d9233ff245e93076b610a47022146b9 /app/models/list.rb | |
parent | a88004c876b94d44ce61c19d8c4c42e8de636f58 (diff) |
Add preload in issues controller
Diffstat (limited to 'app/models/list.rb')
-rw-r--r-- | app/models/list.rb | 1 |
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 |