diff options
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 49834af3dfb..5bd00a1d7ef 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -14,6 +14,7 @@ class List < ApplicationRecord validates :label_id, uniqueness: { scope: :board_id }, if: :label? scope :preload_associated_models, -> { preload(:board, label: :priorities) } + scope :without_types, ->(list_types) { where.not(list_type: list_types) } alias_method :preferences, :list_user_preferences |