diff options
author | oswaldoferreira <oswaldo@gitlab.com> | 2018-03-28 15:32:13 -0300 |
---|---|---|
committer | oswaldoferreira <oswaldo@gitlab.com> | 2018-03-28 15:32:13 -0300 |
commit | 455e7a2fa1bcbc06825f9f3414ee63fcba920412 (patch) | |
tree | 41997d57d26b9b6e3e7a226dec8dbec037ad55d9 /app/services/boards | |
parent | 38bc4acb1c31d45937ecc318da06ac16faf234bb (diff) | |
download | gitlab-ce-455e7a2fa1bcbc06825f9f3414ee63fcba920412.tar.gz |
[Backport] Order boards alphabeticallyosw-order-boards-by-name
Diffstat (limited to 'app/services/boards')
-rw-r--r-- | app/services/boards/list_service.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/boards/list_service.rb b/app/services/boards/list_service.rb index 6d0dd0a9f99..9269b8d2620 100644 --- a/app/services/boards/list_service.rb +++ b/app/services/boards/list_service.rb @@ -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 |