[Backport] Order boards alphabetically
This commit is contained in:
parent
38bc4acb1c
commit
455e7a2fa1
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue