summaryrefslogtreecommitdiff
path: root/app/services/boards
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/boards')
-rw-r--r--app/services/boards/create_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/boards/create_service.rb b/app/services/boards/create_service.rb
index 4caf5ffa3cb..1b796cef3e2 100644
--- a/app/services/boards/create_service.rb
+++ b/app/services/boards/create_service.rb
@@ -9,7 +9,7 @@ module Boards
private
def can_create_board?
- parent.boards.size == 0
+ parent.boards.empty?
end
def create_board!