diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-06 16:27:54 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-06 16:27:54 +0100 |
commit | 973e8c0fc50bc6614ca42413555a3f73625c7efa (patch) | |
tree | 61e70ee3ef7180b9ef0dbd0eddd072d0ba4ecde9 /app/services/boards | |
parent | e7b4eade0d69a70400a8d18ec72218c7b0bf1517 (diff) | |
download | gitlab-ce-973e8c0fc50bc6614ca42413555a3f73625c7efa.tar.gz |
updated service spec
Diffstat (limited to 'app/services/boards')
-rw-r--r-- | app/services/boards/lists/list_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/boards/lists/list_service.rb b/app/services/boards/lists/list_service.rb index 4ec56c3ac4d..df2a01a69e5 100644 --- a/app/services/boards/lists/list_service.rb +++ b/app/services/boards/lists/list_service.rb @@ -2,7 +2,7 @@ module Boards module Lists class ListService < BaseService def execute(board) - board.lists.create(list_type: :backlog) unless board.lists.backlog.any? + board.lists.create(list_type: :backlog) unless board.lists.backlog.exists? board.lists end |