15 lines
255 B
Ruby
15 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
|