f452c1aa7d
The closed & backlog lists in issue boards are no collapsible. They can be collapsed independently of each other & this selection is then saved to the browser through localStorage. When the page loads, the code gets the data from localStorage & determines whether to show or hide the list Closes #23917
15 lines
297 B
Ruby
15 lines
297 B
Ruby
class Board < ActiveRecord::Base
|
|
belongs_to :project
|
|
|
|
has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all
|
|
|
|
validates :project, presence: true
|
|
|
|
def backlog_list
|
|
lists.merge(List.backlog).take
|
|
end
|
|
|
|
def closed_list
|
|
lists.merge(List.closed).take
|
|
end
|
|
end
|