BigW Consortium Gitlab

board.rb 293 Bytes
Newer Older
1 2 3
class Board < ActiveRecord::Base
  belongs_to :project

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

  validates :project, presence: true
7 8 9 10 11 12 13 14

  def backlog_list
    lists.merge(List.backlog).take
  end

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