debian-mirror-gitlab/app/services/boards/list_service.rb

15 lines
255 B
Ruby
Raw Normal View History

2016-11-03 12:29:30 +05:30
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