[Backport] Order boards alphabetically

This commit is contained in:
oswaldoferreira 2018-03-28 15:32:13 -03:00
parent 38bc4acb1c
commit 455e7a2fa1
1 changed files with 5 additions and 1 deletions

View File

@ -2,11 +2,15 @@ module Boards
class ListService < Boards::BaseService
def execute
create_board! if parent.boards.empty?
parent.boards
boards
end
private
def boards
parent.boards
end
def create_board!
Boards::CreateService.new(parent, current_user).execute
end