Module: BoardsActions

Extended by:
ActiveSupport::Concern
Includes:
Gitlab::Utils::StrongMemoize
Included in:
Groups::BoardsController, Projects::BoardsController
Defined in:
app/controllers/concerns/boards_actions.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



14
15
16
17
# File 'app/controllers/concerns/boards_actions.rb', line 14

def index
  # if no board exists, create one
  @board = board_create_service.execute.payload unless board # rubocop:disable Gitlab/ModuleWithInstanceVariables
end

#showObject



19
20
21
22
23
24
# File 'app/controllers/concerns/boards_actions.rb', line 19

def show
  return render_404 unless board

  # Add / update the board in the recent visits table
  board_visit_service.new(parent, current_user).execute(board)
end