blob: cf8317891b509519806c07a21226e6f74201461b (
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 closed_list
lists.merge(List.closed).take
end
end
|