Commit cf265d37 authored by charlieablett's avatar charlieablett

Add with_associations scope to `ee` board

parent 9e6fd75d
...@@ -22,6 +22,8 @@ module EE ...@@ -22,6 +22,8 @@ module EE
has_many :labels, through: :board_labels has_many :labels, through: :board_labels
validates :name, presence: true validates :name, presence: true
scope :with_associations, -> { preload(:destroyable_lists, :milestone, :board_labels, :labels) }
end end
override :scoped? override :scoped?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment