diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-24 18:11:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-24 18:11:10 +0300 |
commit | 958d8a85d32fece017eac7d99bf28860b01a49d8 (patch) | |
tree | 3c84c8447a8d9a6f7ccf7401eeb3cd268570c94f /app/models/list.rb | |
parent | 35c5f0c35c83f3c5f8d33fb61713495e29bdec4d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/list.rb')
-rw-r--r-- | app/models/list.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/models/list.rb b/app/models/list.rb index 5bd00a1d7ef..e1954ed72c4 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -18,14 +18,6 @@ class List < ApplicationRecord alias_method :preferences, :list_user_preferences - class << self - def preload_preferences_for_user(lists, user) - return unless user - - lists.each { |list| list.preferences_for(user) } - end - end - def preferences_for(user) return preferences.build unless user @@ -39,18 +31,6 @@ class List < ApplicationRecord end end - def update_preferences_for(user, preferences = {}) - return unless user - - preferences_for(user).update(preferences) - end - - def collapsed?(user) - preferences = preferences_for(user) - - preferences.collapsed? - end - def as_json(options = {}) super(options).tap do |json| json[:collapsed] = false |