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:
authorcharlieablett <cablett@gitlab.com>2019-06-26 12:49:53 +0300
committercharlieablett <cablett@gitlab.com>2019-06-26 12:49:53 +0300
commit82b87ae509e744dab135573da1f9b8ada4f81ed9 (patch)
tree615de686c1898b407ab7ed6087fa3167f1e4dcf6 /app/models/board.rb
parent5aaef1334de1a765ed29e1065bb52d2bfa4f8944 (diff)
Compound lists scopes to preserve ordering
Diffstat (limited to 'app/models/board.rb')
-rw-r--r--app/models/board.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/board.rb b/app/models/board.rb
index 891d26897ed..cde5ee7c5b5 100644
--- a/app/models/board.rb
+++ b/app/models/board.rb
@@ -5,7 +5,7 @@ class Board < ApplicationRecord
belongs_to :project
has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all # rubocop:disable Cop/ActiveRecordDependent
- has_many :destroyable_lists, -> { destroyable }, class_name: "List"
+ has_many :destroyable_lists, -> { lists.destroyable }, class_name: "List"
validates :project, presence: true, if: :project_needed?
validates :group, presence: true, unless: :project