Welcome to mirror list, hosted at ThFree Co, Russian Federation.

board.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2780acc67c0766f2ead30d1a124741dfac885262 (plain)
1
2
3
4
5
6
7
8
9
10
11
class Board < ActiveRecord::Base
  belongs_to :project

  has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all

  validates :project, presence: true

  def done_list
    lists.merge(List.done).take
  end
end