debian-mirror-gitlab/app/services/boards/list_service.rb
2016-11-03 12:29:30 +05:30

14 lines
255 B
Ruby

module Boards
class ListService < BaseService
def execute
create_board! if project.boards.empty?
project.boards
end
private
def create_board!
Boards::CreateService.new(project, current_user).execute
end
end
end