Commit 455e7a2f authored by oswaldoferreira's avatar oswaldoferreira

[Backport] Order boards alphabetically

parent 38bc4acb
...@@ -2,11 +2,15 @@ module Boards ...@@ -2,11 +2,15 @@ module Boards
class ListService < Boards::BaseService class ListService < Boards::BaseService
def execute def execute
create_board! if parent.boards.empty? create_board! if parent.boards.empty?
parent.boards boards
end end
private private
def boards
parent.boards
end
def create_board! def create_board!
Boards::CreateService.new(parent, current_user).execute Boards::CreateService.new(parent, current_user).execute
end end
......
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